Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use Translator:Translate?

Asked by 3 years ago
Edited 3 years ago

I'm trying to translate "Hi" to Spanish, and then print the result, but "Hi" always prints. Is there something I'm missing? This is a LocalScript and it's parented under a TextBox.

local spanish = game.LocalizationService:GetTranslatorForLocaleAsync('es')

print('Translators retrieved!')

local translated = spanish:Translate(script.Parent, 'Hi')

print(translated)

Answer this question