forked from chrisharper/leatrix-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Leatrix_Plus_Locale.lua
63 lines (51 loc) · 2.02 KB
/
Leatrix_Plus_Locale.lua
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
----------------------------------------------------------------------
-- Leatrix Plus Locale
----------------------------------------------------------------------
-- Create locale structure
local GameLocale = GetLocale()
local void, Leatrix_Plus = ...
local function localeFunc(L, key) return key end
local L = setmetatable({}, {__index = localeFunc})
Leatrix_Plus.L = L
-- Locale override (enUS, zhCN, zhTW, ruRU, koKR, deDE, esMX, frFR, itIT, ptBR)
-- GameLocale = "enUS"
-- zhCN: Simplified Chinese
if GameLocale == "zhCN" then
--@localization(locale = "zhCN", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- zhTW: Traditional Chinese
if GameLocale == "zhTW" then
--@localization(locale = "zhTW", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- ruRU: Russian
if GameLocale == "ruRU" then
--@localization(locale = "ruRU", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- koKR: Korean
if GameLocale == "koKR" then
--@localization(locale = "koKR", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- deDE: German
if GameLocale == "deDE" then
--@localization(locale = "deDE", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- esMX: Latin American Spanish
if GameLocale == "esMX" then
--@localization(locale = "esMX", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- esES: European Spanish
if GameLocale == "esES" then
--@localization(locale = "esES", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- frFR: French
if GameLocale == "frFR" then
--@localization(locale = "frFR", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- itIT: Italian
if GameLocale == "itIT" then
--@localization(locale = "itIT", format = "lua_additive_table", handle-unlocalized = "ignore")@
end
-- ptBR: Brazilian Portuguese
if GameLocale == "ptBR" then
--@localization(locale = "ptBR", format = "lua_additive_table", handle-unlocalized = "ignore")@
end