i18n on the web

This commit is contained in:
Priec
2026-08-14 20:35:18 +02:00
parent 3be6b63084
commit 2dc0d94ba0
12 changed files with 178 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ mod tests {
// The admin page is only reachable with a session, so the navbar
// shows the role badge and the log-out button.
let nav = Nav {
locale: Default::default(),
authenticated: true,
role: "admin".to_string(),
can_admin: true,

View File

@@ -42,6 +42,7 @@ mod tests {
fn page() -> GrantsPage {
GrantsPage {
nav: Nav {
locale: Default::default(),
authenticated: true,
role: "admin".to_string(),
can_admin: true,

View File

@@ -31,6 +31,7 @@ mod tests {
fn the_role_list_offers_creation_and_holds_back_deletion_of_a_role_in_use() {
let page = RolesPage {
nav: Nav {
locale: Default::default(),
authenticated: true,
role: "admin".to_string(),
can_admin: true,

View File

@@ -31,6 +31,7 @@ mod tests {
fn a_user_the_caller_does_not_outrank_gets_no_controls() {
let page = UsersPage {
nav: Nav {
locale: Default::default(),
authenticated: true,
role: "admin".to_string(),
can_admin: true,