Locales should be sorted in dropdown
This commit is contained in:
parent
66f5a3f6f6
commit
ef18a3ad5c
|
@ -15,7 +15,7 @@ class LocaleSiteSetting
|
|||
|
||||
def self.supported_locales
|
||||
@lock.synchronize do
|
||||
@supported_locales ||= Dir.glob( File.join(Rails.root, 'config', 'locales', 'client.*.yml') ).map {|x| x.split('.')[-2]}
|
||||
@supported_locales ||= Dir.glob( File.join(Rails.root, 'config', 'locales', 'client.*.yml') ).map {|x| x.split('.')[-2]}.sort
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue