Class Locale

Class Documentation

class Locale

Loads game strings from a .json file.

The expected format for the .json file consisting of game strings is {“key1”:”game string 1” , “key2”:”game string 2”}

Public Functions

String getString(const String key)

Used to get game string of the current language by passing the key defined for the string in the .json file.

void loadLanguage(const String location)

Used to load game strings from the .json file present in the location passed.

Public Static Functions

static Locale *GetSingleton()