Language

The Language system enable developers to receive text data from JSON files, which in turn allows translations to be implemented more easily.

Label:

The Label system allows your text (and TextMeshPro) components to display data from JSON files.

First, attach a LabelDataManager onto your scene. This manager will collect data from all JSONs (inside the Resources folder) that include "label_data" in their filenames.

Next, attach an instance of Labeller onto your text elements. Assign an id to each one, then when you play the scene, if a matching id exists in one of your JSON files, the text should display as expected.

The Label system works in conjunction with the Localization framework, which tracks the chosen language of your project.

Localization:

The Language system, working alongside the Label scripts, enables you to switch languages on the fly. Make sure to include a copy of LocalizationManager in your scene. The default language is set to English. After that, call SetLanguage at any time to make the switch. Please note your Labeller components will have to be re-instantiated for the change to take effect.

Required:

Core

JSON