Enable ro and ta locales in Rails (#8583)
* Enable ro and ta locales in Rails * Add Tamil and Romanian to language dropdown
This commit is contained in:
parent
78b89e7a5d
commit
14a300b428
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue