-
Notifications
You must be signed in to change notification settings - Fork 3
/
localization.lua
55 lines (55 loc) · 1.87 KB
/
localization.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
local me,ns=...
local lang=GetLocale()
local l=LibStub("AceLocale-3.0")
local L=l:NewLocale(me,"enUS",true,true)
--@localization(locale="enUS", format="lua_additive_table" , same-key-is-true=true, handle-unlocalized="english" )@
L=l:NewLocale(me,"ptBR")
if (L) then
--@localization(locale="ptBR", format="lua_additive_table" , same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"frFR")
if (L) then
--@localization(locale="frFR", format="lua_additive_table" , same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"deDE")
if (L) then
--@localization(locale="deDE", format="lua_additive_table" , same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"itIT")
if (L) then
--@localization(locale="itIT", format="lua_additive_table", same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"koKR")
if (L) then
--@localization(locale="koKR", format="lua_additive_table", same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"esMX")
if (L) then
--@localization(locale="esMX", format="lua_additive_table", same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"ruRU")
if (L) then
--@localization(locale="ruRU", format="lua_additive_table", same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"zhCN")
if (L) then
--@localization(locale="zhCN", format="lua_additive_table", same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"esES")
if (L) then
--@localization(locale="esES", format="lua_additive_table", same-key-is-true=true, handle-unlocalized="english" )@
return
end
L=l:NewLocale(me,"zhTW")
if (L) then
--@localization(locale="zhTW", format="lua_additive_table", same-key-is-true=true, handle-unlocalized="english" )@
return
end