From 320985decb606d5a42aaa356916fc0c5e54a3eeb Mon Sep 17 00:00:00 2001 From: GunChleoc Date: Tue, 13 Feb 2024 09:28:29 +0000 Subject: [PATCH] Add nan-TW locale --- app/helpers/languages_helper.rb | 1 + config/initializers/i18n.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/helpers/languages_helper.rb b/app/helpers/languages_helper.rb index 87f0f288d36..65a2f1cc2cb 100644 --- a/app/helpers/languages_helper.rb +++ b/app/helpers/languages_helper.rb @@ -209,6 +209,7 @@ module LanguagesHelper # but a language family in spite of sharing the main locale code # We need to be able to filter these ISO_639_1_REGIONAL = { + 'nan-TW': ['Taiwanese (Hokkien)', '臺語(Hô-ló話)'].freeze, 'zh-CN': ['Chinese (China)', '简体中文'].freeze, 'zh-HK': ['Chinese (Hong Kong)', '繁體中文(香港)'].freeze, 'zh-TW': ['Chinese (Taiwan)', '繁體中文(臺灣)'].freeze, diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index 1c1cea1b945..7a4721a8e11 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -62,6 +62,7 @@ Rails.application.configure do :mr, :ms, :my, + :'nan-TW', :nl, :nn, :no,