From f29f487ef8892453a481628a6a3cff802dc89213 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 17 Aug 2020 10:30:59 +0200 Subject: Use localize for page titles --- client/src/app/+admin/config/config.routes.ts | 2 +- client/src/app/+admin/follows/follows.routes.ts | 4 ++-- client/src/app/+admin/moderation/moderation.routes.ts | 8 ++++---- client/src/app/+admin/plugins/plugins.routes.ts | 6 +++--- client/src/app/+admin/system/system.routes.ts | 8 +++----- client/src/app/+admin/users/users.routes.ts | 6 +++--- 6 files changed, 16 insertions(+), 18 deletions(-) (limited to 'client/src/app/+admin') diff --git a/client/src/app/+admin/config/config.routes.ts b/client/src/app/+admin/config/config.routes.ts index 7c1a1a166..1b76b29cc 100644 --- a/client/src/app/+admin/config/config.routes.ts +++ b/client/src/app/+admin/config/config.routes.ts @@ -23,7 +23,7 @@ export const ConfigRoutes: Routes = [ component: EditCustomConfigComponent, data: { meta: { - title: 'Edit custom configuration' + title: $localize`Edit custom configuration` } } } diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts index 817074536..cd70daf77 100644 --- a/client/src/app/+admin/follows/follows.routes.ts +++ b/client/src/app/+admin/follows/follows.routes.ts @@ -25,7 +25,7 @@ export const FollowsRoutes: Routes = [ component: FollowingListComponent, data: { meta: { - title: 'Following list' + title: $localize`Following list` } } }, @@ -34,7 +34,7 @@ export const FollowsRoutes: Routes = [ component: FollowersListComponent, data: { meta: { - title: 'Followers list' + title: $localize`Followers list` } } }, diff --git a/client/src/app/+admin/moderation/moderation.routes.ts b/client/src/app/+admin/moderation/moderation.routes.ts index 8a31a54dc..b60dd5334 100644 --- a/client/src/app/+admin/moderation/moderation.routes.ts +++ b/client/src/app/+admin/moderation/moderation.routes.ts @@ -33,7 +33,7 @@ export const ModerationRoutes: Routes = [ data: { userRight: UserRight.MANAGE_ABUSES, meta: { - title: 'Reports' + title: $localize`Reports` } } }, @@ -64,7 +64,7 @@ export const ModerationRoutes: Routes = [ data: { userRight: UserRight.MANAGE_VIDEO_BLACKLIST, meta: { - title: 'Videos blocked' + title: $localize`Videos blocked` } } }, @@ -75,7 +75,7 @@ export const ModerationRoutes: Routes = [ data: { userRight: UserRight.MANAGE_ACCOUNTS_BLOCKLIST, meta: { - title: 'Muted accounts' + title: $localize`Muted accounts` } } }, @@ -86,7 +86,7 @@ export const ModerationRoutes: Routes = [ data: { userRight: UserRight.MANAGE_SERVERS_BLOCKLIST, meta: { - title: 'Muted instances' + title: $localize`Muted instances` } } } diff --git a/client/src/app/+admin/plugins/plugins.routes.ts b/client/src/app/+admin/plugins/plugins.routes.ts index 4bef27be3..4cf55dda2 100644 --- a/client/src/app/+admin/plugins/plugins.routes.ts +++ b/client/src/app/+admin/plugins/plugins.routes.ts @@ -25,7 +25,7 @@ export const PluginsRoutes: Routes = [ component: PluginListInstalledComponent, data: { meta: { - title: 'List installed plugins' + title: $localize`List installed plugins` } } }, @@ -34,7 +34,7 @@ export const PluginsRoutes: Routes = [ component: PluginSearchComponent, data: { meta: { - title: 'Search plugins' + title: $localize`Search plugins` } } }, @@ -43,7 +43,7 @@ export const PluginsRoutes: Routes = [ component: PluginShowInstalledComponent, data: { meta: { - title: 'Show plugin' + title: $localize`Show plugin` } } } diff --git a/client/src/app/+admin/system/system.routes.ts b/client/src/app/+admin/system/system.routes.ts index 0e8d98519..72ab6705a 100644 --- a/client/src/app/+admin/system/system.routes.ts +++ b/client/src/app/+admin/system/system.routes.ts @@ -10,8 +10,6 @@ export const SystemRoutes: Routes = [ { path: 'system', component: SystemComponent, - data: { - }, children: [ { path: '', @@ -25,7 +23,7 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_JOBS, - title: 'Jobs' + title: $localize`Jobs` } } }, @@ -36,7 +34,7 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_LOGS, - title: 'Logs' + title: $localize`Logs` } } }, @@ -47,7 +45,7 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_DEBUG, - title: 'Debug' + title: $localize`Debug` } } } diff --git a/client/src/app/+admin/users/users.routes.ts b/client/src/app/+admin/users/users.routes.ts index 6560f0260..5183498d6 100644 --- a/client/src/app/+admin/users/users.routes.ts +++ b/client/src/app/+admin/users/users.routes.ts @@ -24,7 +24,7 @@ export const UsersRoutes: Routes = [ component: UserListComponent, data: { meta: { - title: 'Users list' + title: $localize`Users list` } } }, @@ -33,7 +33,7 @@ export const UsersRoutes: Routes = [ component: UserCreateComponent, data: { meta: { - title: 'Create a user' + title: $localize`Create a user` } }, resolve: { @@ -45,7 +45,7 @@ export const UsersRoutes: Routes = [ component: UserUpdateComponent, data: { meta: { - title: 'Update a user' + title: $localize`Update a user` } } } -- cgit v1.2.3