Skip to content

Commit

Permalink
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 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
  • Loading branch information
dyphire committed Aug 12, 2024
1 parent fe0d394 commit 3dd49c9
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
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 3dd49c9

Please # to comment.