Sort default i18n filenames
This commit is contained in:
parent
b492ded55d
commit
5866540dd8
1 changed files with 3 additions and 3 deletions
|
@ -62,9 +62,9 @@ module Middleman::CoreExtensions::I18n
|
|||
|
||||
def langs
|
||||
@options[:langs] || begin
|
||||
Dir[File.join(@app.root, @app.locales_dir, "*.yml")].map do |file|
|
||||
File.basename(file).gsub(".yml", "").to_sym
|
||||
end
|
||||
Dir[File.join(@app.root, @app.locales_dir, "*.yml")].map { |file|
|
||||
File.basename(file).gsub(".yml", "")
|
||||
}.sort.map(&:to_sym)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue