📝Define a language

When a language is defined, the system will check if there is a '.json' file created for it, otherwise it will generate the file with the default content.

locale.setLocale('es');
// Language changed to 'es' (Spanish).
src/core/locales/es.json
{
  "hello": "Hi $1"
}

Last updated