However when I am doing this it is not actually adding them to the portal, the script is on the client side.
local LocalizationService = game:GetService("LocalizationService")
local translator = LocalizationService:GetTranslatorForPlayerAsync(game.Players.LocalPlayer)
function game.ReplicatedStorage.Events.TranslateText.OnInvoke(text)
local trans = translator:Translate(game, text)
if trans ~= nil then
return text
else
return trans
end
end
I know this is almost a year later, but I’m running into the same issue.
Translate() is called with a string not present in the localization table
The string is not added to the localization table
Has anyone figured out if there’s further steps needed that weren’t covered in Localizing with Scripting | Roblox Creator Documentation ? Is there a long time lag between such a request happening and it being reflected in the Localization Portal?