-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.lua
More file actions
29 lines (25 loc) · 758 Bytes
/
index.lua
File metadata and controls
29 lines (25 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ChallengerPlus = setmetatable({
version = "1.1.0-dev2",
meta = {},
}, {})
CPlus = ChallengerPlus
require("cplus/utils")
require("cplus/setup")
require("cplus/challenges")
local init_localization_ref = init_localization
function init_localization(...)
if not G.localization.__cplus_injected then
local en_loc = require("cplus/localization/en-us")
CPlus.utils.table_merge(G.localization, en_loc)
if G.SETTINGS.language ~= "en-us" then
local success, current_loc = pcall(function()
return require("cplus/localization/" .. G.SETTINGS.language)
end)
if success and current_loc then
CPlus.utils.table_merge(G.localization, current_loc)
end
end
G.localization.__cplus_injected = true
end
return init_localization_ref(...)
end