i18n!() { /* proc-macro */ }Available on crate feature
i18n only.Expand description
Init I18n translations.
Loads every **/*.yml file under locales_path at compile time and expands to an
actix_cloud::map! table with flat "locale.key" entries, which is what
actix_cloud::i18n::Locale::add_locale expects.
The path is resolved relative to the package’s CARGO_MANIFEST_DIR.
ⓘ
i18n!("locales");§Panics
Panics if CARGO_MANIFEST_DIR is not set or not valid unicode, or if the locale
files cannot be loaded.