actix_cloud::macros

Macro i18n

Source
i18n!() { /* proc-macro */ }
Available on crate features macros and i18n only.
Expand description

Init I18n translations.

This will load all translations by glob **/*.yml from the given path.

i18n!("locales");

§Panics

Panics is variable CARGO_MANIFEST_DIR is empty.