Browse Source
Enable ro and ta locales in Rails (#8583)
* Enable ro and ta locales in Rails
* Add Tamil and Romanian to language dropdown
pull/4/head
Eugen Rochko
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
0 deletions
-
app/helpers/settings_helper.rb
-
config/application.rb
|
|
@ -35,12 +35,14 @@ module SettingsHelper |
|
|
|
pl: 'Polszczyzna', |
|
|
|
pt: 'Português', |
|
|
|
'pt-BR': 'Português do Brasil', |
|
|
|
ro: 'Limba română', |
|
|
|
ru: 'Русский', |
|
|
|
sk: 'Slovenčina', |
|
|
|
sl: 'Slovenščina', |
|
|
|
sr: 'Српски', |
|
|
|
'sr-Latn': 'Srpski (latinica)', |
|
|
|
sv: 'Svenska', |
|
|
|
ta: 'தமிழ்', |
|
|
|
te: 'తెలుగు', |
|
|
|
th: 'ภาษาไทย', |
|
|
|
tr: 'Türkçe', |
|
|
|
|
|
@ -69,12 +69,14 @@ module Mastodon |
|
|
|
:pl, |
|
|
|
:pt, |
|
|
|
:'pt-BR', |
|
|
|
:ro, |
|
|
|
:ru, |
|
|
|
:sk, |
|
|
|
:sl, |
|
|
|
:sr, |
|
|
|
:'sr-Latn', |
|
|
|
:sv, |
|
|
|
:ta, |
|
|
|
:te, |
|
|
|
:th, |
|
|
|
:tr, |
|
|
@ -85,6 +87,7 @@ module Mastodon |
|
|
|
] |
|
|
|
|
|
|
|
config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym |
|
|
|
|
|
|
|
unless config.i18n.available_locales.include?(config.i18n.default_locale) |
|
|
|
config.i18n.default_locale = :en |
|
|
|
end |
|
|
|