about summary refs log tree commit diff
diff options
context:
space:
mode:
authortaicv <chuvantai@gmail.com>2020-05-10 16:25:35 +0700
committerGitHub <noreply@github.com>2020-05-10 11:25:35 +0200
commit4a2ea2e51b22558bf62216b6be932a5d64014164 (patch)
tree96bc6dadf56b7b3e238a1fa37f8a13dccd71321d
parent8be4c2ba21c6a8e4abb0522dac398645c71d8e94 (diff)
Add `vi` to available locales (#13542)
* Enable selecting Vietnamese language in Admin Dashboard

* Update settings_helper.rb

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
-rw-r--r--app/helpers/settings_helper.rb1
-rw-r--r--config/application.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb
index 74544bad9..87718dc05 100644
--- a/app/helpers/settings_helper.rb
+++ b/app/helpers/settings_helper.rb
@@ -68,6 +68,7 @@ module SettingsHelper
     tr: 'Türkçe',
     uk: 'Українська',
     ur: 'اُردُو',
+    vi: 'Tiếng Việt',
     'zh-CN': '简体中文',
     'zh-HK': '繁體中文(香港)',
     'zh-TW': '繁體中文(臺灣)',
diff --git a/config/application.rb b/config/application.rb
index 4c34efa15..d1980cd68 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -106,6 +106,7 @@ module Mastodon
       :tr,
       :uk,
       :ur,
+      :vi,
       :'zh-CN',
       :'zh-HK',
       :'zh-TW',