You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
i’m new to localization service and I wanted to translate a string -
What is the issue? Include screenshots / videos if possible!
but it didn’t worked, it always returns to the original string -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
changing the language and many more, I used the same code as this link: Utilizing Localization APIs
i already searched for like hours but I still didn’t find any solution
Heres my script:
local LocalizationService = game:GetService("LocalizationService")
local success, translator = pcall(function()
return LocalizationService:GetTranslatorForLocaleAsync("fr")
end)
if success then
local translation = translator:Translate(game, "Dog")
print(translation)
else
warn("Cannot load translator for player!")
end
this is from the create.roblox.com:
and this is the output:
any helps? (Once again i’m new)