-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLocalization.lua
63 lines (58 loc) · 1.88 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
56
57
58
59
60
61
62
local addonName, GHP = ...
-- Add after our existing helper functions
local L = {
-- English
["enUS"] = {
["Aqiri"] = "Aqiri",
["Carapid"] = "Carapid",
["Chimaera"] = "Chimaera",
["Core Hound"] = "Core Hound",
["Devilsaur"] = "Devilsaur",
["Pterrordax"] = "Pterrordax",
["Shale Beast"] = "Shale Beast",
["Spirit Beast"] = "Spirit Beast",
["Stone Hound"] = "Stone Hound",
["Water Strider"] = "Water Strider",
["Worm"] = "Worm"
},
-- Brazilian Portuguese
["ptBR"] = {
["Aqiri"] = "Aqir",
["Water Strider"] = "Caminhante das Águas",
["Stone Hound"] = "Canaz Pétreo",
["Core Hound"] = "Cão-magma",
["Carapid"] = "Carapídeo",
["Devilsaur"] = "Demossauro",
["Spirit Beast"] = "Fera Espiritual",
["Shale Beast"] = "Fera Xistosa",
["Pterrordax"] = "Pterrordax",
["Chimaera"] = "Quimera",
["Worm"] = "Verme"
},
-- Spanish
["esES"] = {
["Aqiri"] = "Aqir",
["Water Strider"] = "Zancudo acuático",
["Stone Hound"] = "Can de piedra",
["Core Hound"] = "Can del Núcleo",
["Carapid"] = "Carápido",
["Devilsaur"] = "Demosaurio",
["Spirit Beast"] = "Bestia espíritu",
["Shale Beast"] = "Bestia de esquisto",
["Pterrordax"] = "Pterrordáctilo",
["Chimaera"] = "Quimera",
["Worm"] = "Gusano"
},
}
-- Get current client locale
local clientLocale = GetLocale()
-- Create exotic families lookup table with localized names
GHP.exoticFamilies = {}
for baseKey, baseValue in pairs(L["enUS"]) do
-- Add English version
GHP.exoticFamilies[baseValue] = true
-- Add localized version if it exists
if L[clientLocale] and L[clientLocale][baseKey] then
GHP.exoticFamilies[L[clientLocale][baseKey]] = true
end
end