Localising New Instances

Hi guys. I’ve not played around with the localisation feature or had any experience using it yet, but I did have a quick question about it:

So here’s an example of a localisation table I’d like to use in my game:

Key fr-fr
online en ligne
create account créer un compte nouvelle
exit sortir

Now, say I spawn a new TextLabel using Instance.new, which, in English, displays the string ‘Online’. Would this text be translated automatically to the French string supplied, providing the AutoLocalize property is enabled, for the matching text; or how would I go about localising text when spawning Instances from Scripts?

Auto-localization happens via the Source column, not via the Key column. Set Source to the text that should be replaced automatically.

2 Likes