diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index ae915abf686481fefc4d9d0b9d7e1541dcca837d..fc03fcf8268083098537a69e8582fcebe0e8641f 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.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', diff --git a/config/application.rb b/config/application.rb index af023b0db6b482f0e92d277828248bfebca5e75d..24f75d3a2456d8313aa0d13d96b502cb2ad3dd8f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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