load_locales!() { /* proc-macro */ }
Expand description

Look for the configuration in the cargo manifest Cargo.toml at the root of the project and load the given locales.

It creates multiple types allowing to easily incorporate translations in you application such as:

  • Locale: an enum representing the available locales of the application.
  • I18nKeys: a struct representing the translation keys.