From 3dd49c90fc7c18b622370e9979b638d05eeed365 Mon Sep 17 00:00:00 2001 From: dyphire Date: Mon, 12 Aug 2024 23:56:01 +0800 Subject: [PATCH] fix: always read the romanization file for the corresponding language in the `language` option When I initially added this feature I neglected to mention that this is different from UI localization. It has different usage scenarios: the 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 = {}