Wrap you app with the
Provides a current locale in case you don't want to use the internal context.
Must be one of the previously configurated in babel plugin
A default message in case of missing translation.
The translation itself:
The id of the translation.
An object to be injected into the translated message.
The children is the default value for the ID. It'll be copied to all locales files (only on creation of the variable, don't worry, it won't mess with your translations).
A hook to get and set the locale:
To edit the translations, just edit the locales files located in the
locales folder, inside the folder specified in the Babel plugin (or in
projectRoot/mercurio/locales if no path was specified).
This is a file located in the root of your Mercurio's
filesOutput path. It's autogenerated and you shouldn't change anything in it. If you do, it'll recompile and revert what you did.