1
0
Fork 0
forked from fedi/mastodon

Add br, es-AR, et, mk, nn to available locales (#12062)

This commit is contained in:
Eugen Rochko 2019-10-03 03:59:43 +02:00 committed by GitHub
parent 1681319d11
commit fb45f6d911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 8 deletions

View file

@ -2,11 +2,11 @@
module SettingsHelper
HUMAN_LOCALES = {
en: 'English',
ar: 'العربية',
ast: 'Asturianu',
bg: 'Български',
bn: 'বাংলা',
br: 'Breton',
ca: 'Català',
co: 'Corsu',
cs: 'Čeština',
@ -14,8 +14,11 @@ module SettingsHelper
da: 'Dansk',
de: 'Deutsch',
el: 'Ελληνικά',
en: 'English',
eo: 'Esperanto',
'es-AR': 'Español (Argentina)',
es: 'Español',
et: 'Eesti',
eu: 'Euskara',
fa: 'فارسی',
fi: 'Suomi',
@ -36,32 +39,34 @@ module SettingsHelper
ko: '한국어',
lt: 'Lietuvių',
lv: 'Latviešu',
mk: 'Македонски',
ml: 'മലയാളം',
ms: 'Bahasa Melayu',
nl: 'Nederlands',
nn: 'Nynorsk',
no: 'Norsk',
oc: 'Occitan',
pl: 'Polski',
pt: 'Português',
'pt-PT': 'Português (Portugal)',
'pt-BR': 'Português (Brasil)',
'pt-PT': 'Português (Portugal)',
pt: 'Português',
ro: 'Română',
ru: 'Русский',
sk: 'Slovenčina',
sl: 'Slovenščina',
sq: 'Shqip',
sr: 'Српски',
'sr-Latn': 'Srpski (latinica)',
sr: 'Српски',
sv: 'Svenska',
ta: 'தமிழ்',
te: 'తెలుగు',
th: 'ไทย',
tr: 'Türkçe',
uk: 'Українська',
zh: '中文',
'zh-CN': '简体中文',
'zh-HK': '繁體中文(香港)',
'zh-TW': '繁體中文(臺灣)',
zh: '中文',
}.freeze
def human_locale(locale)

View file

@ -39,11 +39,11 @@ module Mastodon
# All translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.available_locales = [
:en,
:ar,
:ast,
:bg,
:bn,
:br,
:ca,
:co,
:cs,
@ -51,8 +51,11 @@ module Mastodon
:da,
:de,
:el,
:en,
:eo,
:'es-AR',
:es,
:et,
:eu,
:fa,
:fi,
@ -73,20 +76,22 @@ module Mastodon
:ko,
:lt,
:lv,
:mk,
:ms,
:nl,
:nn,
:no,
:oc,
:pl,
:'pt-PT',
:'pt-BR',
:'pt-PT',
:ro,
:ru,
:sk,
:sl,
:sq,
:sr,
:'sr-Latn',
:sr,
:sv,
:ta,
:te,