Translator
Looks up localized text for a selected locale.
Behavior
Obtain a Translator from LocalizationService.Translator or LocalizationService:TranslatorFor(localeOrPlayer). The value reads translation tables registered in the current runtime.
Summary
Members6
Properties3
The locale identifier selected for this Translator.
The string "Translator".
The string "Translator".
Methods3
Properties
Locale
Translator.Locale: stringThe locale identifier selected for this Translator.
ClassName
Translator.ClassName: stringThe string "Translator".
Name
Translator.Name: stringThe string "Translator".
Methods
Text
Translator:Text(key: string, args: { [string]: any }?): stringLooks up a translation key and substitutes named arguments. Returns the key itself when no translation is found.
Find
Translator:Find(key: string, args: { [string]: any }?): string?Looks up a translation key and substitutes named arguments. Returns nil when no translation is found.
IsA
Translator:IsA(className: string): booleanReturns true for "Translator" or "Instance".