This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,26 @@
local Locales = script.Parent.Locales
local FALLBACK_LOCALE = "en-us"
local function getLocalizationContext(locale)
local primary = Locales:FindFirstChild(locale)
if primary ~= nil then
return {
locale = locale,
translations = require(primary),
}
else
--[[
If the requested language is not available, fallback to
the default; for now, this will be American English.
]]
local fallback = Locales:FindFirstChild(FALLBACK_LOCALE)
return {
locale = FALLBACK_LOCALE,
translations = require(fallback),
}
end
end
return getLocalizationContext