@ -8,5 +8,3 @@ L["Tinkr"] = "Tinkr"
L["Bastion"] = "Bastion"
Bastion.Locale.SetTable(L)
return L
@ -9,13 +9,7 @@ local private = {
hasNoLocaleTable = false
}
private.locale = function()
private.locale = GetLocale()
local locale = GAME_LOCALE or GetLocale()
if locale == "enGB" then
locale = "enUS"
end
return locale
function Locale.GetTable()
assert(private.tbl)
@ -44,7 +38,4 @@ function Locale.SetTable(tbl)
Locale.SetTable({})
return Locale
@ -62,8 +62,8 @@ Bastion.Globals = {}
---@type Locale
Bastion.Locale = Bastion.require("Locale")
Load("@Locales/")
Bastion.Locales = {}
-- Bastion.Locales = {}
Bastion.Locales.enUS = Bastion:Require("@Locales/enUS")
-- Bastion.Locales.enUS = Bastion:Require("@Locales/enUS")
local L = Bastion.Locale.GetTable()
Bastion.Globals.L = L
---@type Environment