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
|
def langs
|
||||||
@options[:langs] || begin
|
@options[:langs] || begin
|
||||||
Dir[File.join(@app.root, @app.locales_dir, "*.yml")].map do |file|
|
Dir[File.join(@app.root, @app.locales_dir, "*.yml")].map { |file|
|
||||||
File.basename(file).gsub(".yml", "").to_sym
|
File.basename(file).gsub(".yml", "")
|
||||||
end
|
}.sort.map(&:to_sym)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue