From 06802aeb812f5a4dc79de0a2d7fcd0142bba0ad9 Mon Sep 17 00:00:00 2001 From: dyphire Date: Mon, 12 Aug 2024 23:59:53 +0800 Subject: [PATCH] fix: always read the romanization file for the corresponding language in the `language` option When I originally added this feature, I overlooked that this was actually different from UI localization. It has different usage scenarios: UI main language and romanization files can be separated --- src/uosc/lib/char_conv.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/uosc/lib/char_conv.lua b/src/uosc/lib/char_conv.lua index 8e5183c8..101a629f 100644 --- a/src/uosc/lib/char_conv.lua +++ b/src/uosc/lib/char_conv.lua @@ -6,11 +6,7 @@ local data = {} local languages = get_languages() for i = #languages, 1, -1 do lang = languages[i] - if (lang == 'en') then - data = {} - else - table_assign(data, get_locale_from_json(char_dir .. lang:lower() .. '.json')) - end + table_assign(data, get_locale_from_json(char_dir .. lang:lower() .. '.json')) end local romanization = {}