The Localizer is a helper interface that offers access to localized strings that are contained in a single specified .strings resource.
A .strings resource can hold localized strings for many different languages. Use Localizer.set_language(), to set the language that should be used for localization.
Example:
my_localizer = stingray.Localizer("resources/levels/level1/dialogue") local en_string = stingray.Localizer.lookup(my_localizer, "introduction") -- returns default ("en") string ... stingray.Localizer.set_language("fr") -- or whatever language the player selects local fr_string = stingray.Localizer.lookup(my_localizer, "introduction") -- returns French string
See also Localizing your project.