Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: always read the romanization file for the corresponding language…
Browse files Browse the repository at this point in the history
… 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
dyphire committed Aug 12, 2024

Verified

This commit was signed with the committer’s verified signature.
jalaziz Jameel Al-Aziz
1 parent fe0d394 commit 06802ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/uosc/lib/char_conv.lua
Original file line number Diff line number Diff line change
@@ -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 = {}

0 comments on commit 06802ae

Please sign in to comment.