//! i18n injection for admin templates — `insert_admin_messages` by section.
use crate;
use Context;
/// Injects every translated `admin.{section}.*` message key (as listed in
/// `ADMIN_MESSAGE_KEYS`) into the Tera context, exposed as `{{ admin_section_key }}`
/// variables (dots replaced with underscores).
/// Injects the `admin_prefix` variable into the Tera context.
///
/// Must be called in every admin handler so that templates can build
/// URLs dynamically instead of relying on the hardcoded `/admin/` path.