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,19 @@
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local ArgCheck = require(CorePackages.ArgCheck)
local LocalizationConsumer = require(CorePackages.Localization.LocalizationConsumer)
local function withLocalization(stringsToBeLocalized)
ArgCheck.isType(stringsToBeLocalized, "table", "stringsToBeLocalized passed to withLocalization()")
return function(render)
ArgCheck.isType(render, "function", "render passed to withLocalization()")
return Roact.createElement(LocalizationConsumer, {
render = render,
stringsToBeLocalized = stringsToBeLocalized,
})
end
end
return withLocalization