mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 01:35:37 +08:00
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…
x
Reference in New Issue
Block a user