-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalization.lua
More file actions
38 lines (35 loc) · 1.21 KB
/
Copy pathLocalization.lua
File metadata and controls
38 lines (35 loc) · 1.21 KB
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
local L = {}
-- English localization
L["enUS"] = {
name = "Name",
professions = "Professions",
lastUpdated = "Last Updated",
blacklisted = "Blacklisted",
reason = "Reason",
inputName = "Name ",
inputClass = "Class ",
inputReason = "Reason",
submitButton = "Submit",
removeButton = "Remove",
welcomeMessage = "Welcome to YippYappGuildTools!",
errorMessage = "An error has occurred.",
alreadyInBlacklist = "%s is already in the blacklist.",
notInBlacklist = "%s is not in the blacklist.",
blacklistedAsClass = "%s is blacklisted as a %s.",
failedToDeserialize = "Failed to deserialize data from %s",
failedToSerialize = "Character data for serialization not found.",
classNames = {
Warrior = "Warrior",
Mage = "Mage",
Rogue = "Rogue",
Shaman = "Shaman",
Paladin = "Paladin",
Warlock = "Warlock",
Druid = "Druid",
Hunter = "Hunter",
Priest = "Priest",
},
}
-- Determine the current locale and select the appropriate localization table
local currentLocale = GetLocale()
localeTable = L[currentLocale] or L["enUS"] -- Fallback to English if the current locale is not supported