Skip to main contentCrate rustbasic_translatable
Source pub use middleware::translatable_middleware;
- middleware
- translator
- __
- Standard global translation shortcut function, identical to trans
- get_default_locale
- Get current default fallback language locale
- init
- Initialize and load all JSON translation files from the specified folder
- set_default_locale
- Set default fallback language locale (e.g. “id”)
- trans
- Translate a key using the active request-scoped locale automatically
- trans_with
- Translate a key with dynamic placeholder variables using the active request-scoped locale