Skip to main content

SESSION_KEY

Constant SESSION_KEY 

Source
pub const SESSION_KEY: &str = "locale";
Expand description

The session key LanguageController-style app code should session.insert("locale", ...) into - matches whatever a real app’s own language-switcher route already sets, so wiring this middleware in doesn’t require renaming an existing session key.