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

Defined in:
lib/redmine/i18n.rb

Instance Method Summary collapse

Instance Method Details

#available_localesObject

Get available locales from the translations filenames



163
164
165
# File 'lib/redmine/i18n.rb', line 163

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