Skip to main content

Crate rustbasic_translatable

Crate rustbasic_translatable 

Source

Re-exports§

pub use middleware::translatable_middleware;

Modules§

middleware
translator

Functions§

__
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