From 11725de09aced2c5b67e1a17dcf0c6a461755f6d Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Mon, 5 Oct 2020 22:53:24 +0530 Subject: [PATCH] chore: Enable Vietnamese in languages (#1314) --- config/initializers/languages.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/languages.rb b/config/initializers/languages.rb index 9d2df1c5e..c2d076dbb 100644 --- a/config/initializers/languages.rb +++ b/config/initializers/languages.rb @@ -22,7 +22,8 @@ LANGUAGES_CONFIG = { 17 => { name: 'Romanian', iso_639_3_code: 'ron', iso_639_1_code: 'ro', enabled: true }, 18 => { name: 'Tamil', iso_639_3_code: 'tam', iso_639_1_code: 'ta', enabled: true }, 19 => { name: 'Persian', iso_639_3_code: 'fas', iso_639_1_code: 'fa', enabled: true }, - 20 => { name: 'Traditional Chinese', iso_639_3_code: 'zho', iso_639_1_code: 'zh_TW', enabled: true } + 20 => { name: 'Traditional Chinese', iso_639_3_code: 'zho', iso_639_1_code: 'zh_TW', enabled: true }, + 21 => { name: 'Vietnamese', iso_639_3_code: 'vie', iso_639_1_code: 'vi', enabled: true } }.filter { |_key, val| val[:enabled] }.freeze Rails.configuration.i18n.available_locales = LANGUAGES_CONFIG.map { |_index, lang| lang[:iso_639_1_code].to_sym }