Module: Redmine::I18n::Backend::Implementation
- Defined in:
- lib/redmine/i18n.rb
Instance Method Summary collapse
-
#available_locales ⇒ Object
Get available locales from the translations filenames.
Instance Method Details
#available_locales ⇒ Object
Get available locales from the translations filenames
181 182 183 184 185 186 |
# File 'lib/redmine/i18n.rb', line 181 def available_locales @available_locales ||= begin redmine_locales = Dir[Rails.root / 'config' / 'locales' / '*.yml'].map { |f| File.basename(f, '.yml').to_sym } super & redmine_locales end end |