Enable ro and ta locales in Rails (#8583)

* Enable ro and ta locales in Rails

* Add Tamil and Romanian to language dropdown
th-downstream
Eugen Rochko 6 years ago committed by GitHub
parent 64f01b2e7d
commit 9768e9f6ab

@ -35,12 +35,14 @@ module SettingsHelper
pl: 'Polszczyzna', pl: 'Polszczyzna',
pt: 'Português', pt: 'Português',
'pt-BR': 'Português do Brasil', 'pt-BR': 'Português do Brasil',
ro: 'Limba română',
ru: 'Русский', ru: 'Русский',
sk: 'Slovenčina', sk: 'Slovenčina',
sl: 'Slovenščina', sl: 'Slovenščina',
sr: 'Српски', sr: 'Српски',
'sr-Latn': 'Srpski (latinica)', 'sr-Latn': 'Srpski (latinica)',
sv: 'Svenska', sv: 'Svenska',
ta: 'தமிழ்',
te: 'తెలుగు', te: 'తెలుగు',
th: 'ภาษาไทย', th: 'ภาษาไทย',
tr: 'Türkçe', tr: 'Türkçe',

@ -69,12 +69,14 @@ module Mastodon
:pl, :pl,
:pt, :pt,
:'pt-BR', :'pt-BR',
:ro,
:ru, :ru,
:sk, :sk,
:sl, :sl,
:sr, :sr,
:'sr-Latn', :'sr-Latn',
:sv, :sv,
:ta,
:te, :te,
:th, :th,
:tr, :tr,
@ -85,6 +87,7 @@ module Mastodon
] ]
config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym
unless config.i18n.available_locales.include?(config.i18n.default_locale) unless config.i18n.available_locales.include?(config.i18n.default_locale)
config.i18n.default_locale = :en config.i18n.default_locale = :en
end end

Loading…
Cancel
Save