Module: Redmine::I18n::Backend::Implementation

Includes:
I18n::Backend::Pluralization
Defined in:
lib/redmine/i18n.rb

Instance Method Summary collapse

Instance Method Details

#available_localesObject

Get available locales from the translations filenames


157
158
159
# File 'lib/redmine/i18n.rb', line 157

def available_locales
  @available_locales ||= ::I18n.load_path.map {|path| File.basename(path, '.*')}.uniq.sort.map(&:to_sym)
end