Use localize for page titles

This commit is contained in:
Chocobozzz 2020-08-17 10:30:59 +02:00
parent 1bfc7b7379
commit f29f487ef8
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
18 changed files with 57 additions and 59 deletions

View File

@ -23,7 +23,7 @@ const aboutRoutes: Routes = [
component: AboutInstanceComponent, component: AboutInstanceComponent,
data: { data: {
meta: { meta: {
title: 'About this instance' title: $localize`About this instance`
} }
}, },
resolve: { resolve: {
@ -35,7 +35,7 @@ const aboutRoutes: Routes = [
component: AboutPeertubeComponent, component: AboutPeertubeComponent,
data: { data: {
meta: { meta: {
title: 'About PeerTube' title: $localize`About PeerTube`
} }
} }
}, },
@ -44,7 +44,7 @@ const aboutRoutes: Routes = [
component: AboutFollowsComponent, component: AboutFollowsComponent,
data: { data: {
meta: { meta: {
title: 'About follows' title: $localize`About follows`
} }
} }
} }

View File

@ -26,7 +26,7 @@ const accountsRoutes: Routes = [
component: AccountVideosComponent, component: AccountVideosComponent,
data: { data: {
meta: { meta: {
title: 'Account videos' title: $localize`Account videos`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -39,7 +39,7 @@ const accountsRoutes: Routes = [
component: AccountVideoChannelsComponent, component: AccountVideoChannelsComponent,
data: { data: {
meta: { meta: {
title: 'Account video channels' title: $localize`Account video channels`
} }
} }
}, },
@ -48,7 +48,7 @@ const accountsRoutes: Routes = [
component: AccountAboutComponent, component: AccountAboutComponent,
data: { data: {
meta: { meta: {
title: 'About account' title: $localize`About account`
} }
} }
} }

View File

@ -23,7 +23,7 @@ export const ConfigRoutes: Routes = [
component: EditCustomConfigComponent, component: EditCustomConfigComponent,
data: { data: {
meta: { meta: {
title: 'Edit custom configuration' title: $localize`Edit custom configuration`
} }
} }
} }

View File

@ -25,7 +25,7 @@ export const FollowsRoutes: Routes = [
component: FollowingListComponent, component: FollowingListComponent,
data: { data: {
meta: { meta: {
title: 'Following list' title: $localize`Following list`
} }
} }
}, },
@ -34,7 +34,7 @@ export const FollowsRoutes: Routes = [
component: FollowersListComponent, component: FollowersListComponent,
data: { data: {
meta: { meta: {
title: 'Followers list' title: $localize`Followers list`
} }
} }
}, },

View File

@ -33,7 +33,7 @@ export const ModerationRoutes: Routes = [
data: { data: {
userRight: UserRight.MANAGE_ABUSES, userRight: UserRight.MANAGE_ABUSES,
meta: { meta: {
title: 'Reports' title: $localize`Reports`
} }
} }
}, },
@ -64,7 +64,7 @@ export const ModerationRoutes: Routes = [
data: { data: {
userRight: UserRight.MANAGE_VIDEO_BLACKLIST, userRight: UserRight.MANAGE_VIDEO_BLACKLIST,
meta: { meta: {
title: 'Videos blocked' title: $localize`Videos blocked`
} }
} }
}, },
@ -75,7 +75,7 @@ export const ModerationRoutes: Routes = [
data: { data: {
userRight: UserRight.MANAGE_ACCOUNTS_BLOCKLIST, userRight: UserRight.MANAGE_ACCOUNTS_BLOCKLIST,
meta: { meta: {
title: 'Muted accounts' title: $localize`Muted accounts`
} }
} }
}, },
@ -86,7 +86,7 @@ export const ModerationRoutes: Routes = [
data: { data: {
userRight: UserRight.MANAGE_SERVERS_BLOCKLIST, userRight: UserRight.MANAGE_SERVERS_BLOCKLIST,
meta: { meta: {
title: 'Muted instances' title: $localize`Muted instances`
} }
} }
} }

View File

@ -25,7 +25,7 @@ export const PluginsRoutes: Routes = [
component: PluginListInstalledComponent, component: PluginListInstalledComponent,
data: { data: {
meta: { meta: {
title: 'List installed plugins' title: $localize`List installed plugins`
} }
} }
}, },
@ -34,7 +34,7 @@ export const PluginsRoutes: Routes = [
component: PluginSearchComponent, component: PluginSearchComponent,
data: { data: {
meta: { meta: {
title: 'Search plugins' title: $localize`Search plugins`
} }
} }
}, },
@ -43,7 +43,7 @@ export const PluginsRoutes: Routes = [
component: PluginShowInstalledComponent, component: PluginShowInstalledComponent,
data: { data: {
meta: { meta: {
title: 'Show plugin' title: $localize`Show plugin`
} }
} }
} }

View File

@ -10,8 +10,6 @@ export const SystemRoutes: Routes = [
{ {
path: 'system', path: 'system',
component: SystemComponent, component: SystemComponent,
data: {
},
children: [ children: [
{ {
path: '', path: '',
@ -25,7 +23,7 @@ export const SystemRoutes: Routes = [
data: { data: {
meta: { meta: {
userRight: UserRight.MANAGE_JOBS, userRight: UserRight.MANAGE_JOBS,
title: 'Jobs' title: $localize`Jobs`
} }
} }
}, },
@ -36,7 +34,7 @@ export const SystemRoutes: Routes = [
data: { data: {
meta: { meta: {
userRight: UserRight.MANAGE_LOGS, userRight: UserRight.MANAGE_LOGS,
title: 'Logs' title: $localize`Logs`
} }
} }
}, },
@ -47,7 +45,7 @@ export const SystemRoutes: Routes = [
data: { data: {
meta: { meta: {
userRight: UserRight.MANAGE_DEBUG, userRight: UserRight.MANAGE_DEBUG,
title: 'Debug' title: $localize`Debug`
} }
} }
} }

View File

@ -24,7 +24,7 @@ export const UsersRoutes: Routes = [
component: UserListComponent, component: UserListComponent,
data: { data: {
meta: { meta: {
title: 'Users list' title: $localize`Users list`
} }
} }
}, },
@ -33,7 +33,7 @@ export const UsersRoutes: Routes = [
component: UserCreateComponent, component: UserCreateComponent,
data: { data: {
meta: { meta: {
title: 'Create a user' title: $localize`Create a user`
} }
}, },
resolve: { resolve: {
@ -45,7 +45,7 @@ export const UsersRoutes: Routes = [
component: UserUpdateComponent, component: UserUpdateComponent,
data: { data: {
meta: { meta: {
title: 'Update a user' title: $localize`Update a user`
} }
} }
} }

View File

@ -11,7 +11,7 @@ const loginRoutes: Routes = [
canActivate: [ MetaGuard ], canActivate: [ MetaGuard ],
data: { data: {
meta: { meta: {
title: 'Login' title: $localize`Login`
} }
}, },
resolve: { resolve: {

View File

@ -10,7 +10,7 @@ const myAccountVideoChannelsRoutes: Routes = [
component: MyAccountVideoChannelsComponent, component: MyAccountVideoChannelsComponent,
data: { data: {
meta: { meta: {
title: 'Account video channels' title: $localize`Account video channels`
} }
} }
}, },
@ -19,7 +19,7 @@ const myAccountVideoChannelsRoutes: Routes = [
component: MyAccountVideoChannelCreateComponent, component: MyAccountVideoChannelCreateComponent,
data: { data: {
meta: { meta: {
title: 'Create new video channel' title: $localize`Create new video channel`
} }
} }
}, },
@ -28,7 +28,7 @@ const myAccountVideoChannelsRoutes: Routes = [
component: MyAccountVideoChannelUpdateComponent, component: MyAccountVideoChannelUpdateComponent,
data: { data: {
meta: { meta: {
title: 'Update video channel' title: $localize`Update video channel`
} }
} }
} }

View File

@ -34,7 +34,7 @@ const myAccountRoutes: Routes = [
component: MyAccountSettingsComponent, component: MyAccountSettingsComponent,
data: { data: {
meta: { meta: {
title: 'Account settings' title: $localize`Account settings`
} }
} }
}, },
@ -52,7 +52,7 @@ const myAccountRoutes: Routes = [
component: MyAccountVideoPlaylistsComponent, component: MyAccountVideoPlaylistsComponent,
data: { data: {
meta: { meta: {
title: 'Account playlists' title: $localize`Account playlists`
} }
} }
}, },
@ -61,7 +61,7 @@ const myAccountRoutes: Routes = [
component: MyAccountVideoPlaylistCreateComponent, component: MyAccountVideoPlaylistCreateComponent,
data: { data: {
meta: { meta: {
title: 'Create new playlist' title: $localize`Create new playlist`
} }
} }
}, },
@ -70,7 +70,7 @@ const myAccountRoutes: Routes = [
component: MyAccountVideoPlaylistElementsComponent, component: MyAccountVideoPlaylistElementsComponent,
data: { data: {
meta: { meta: {
title: 'Playlist elements' title: $localize`Playlist elements`
} }
} }
}, },
@ -79,7 +79,7 @@ const myAccountRoutes: Routes = [
component: MyAccountVideoPlaylistUpdateComponent, component: MyAccountVideoPlaylistUpdateComponent,
data: { data: {
meta: { meta: {
title: 'Update playlist' title: $localize`Update playlist`
} }
} }
}, },
@ -89,7 +89,7 @@ const myAccountRoutes: Routes = [
component: MyAccountVideosComponent, component: MyAccountVideosComponent,
data: { data: {
meta: { meta: {
title: 'Account videos' title: $localize`Account videos`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -102,7 +102,7 @@ const myAccountRoutes: Routes = [
component: MyAccountVideoImportsComponent, component: MyAccountVideoImportsComponent,
data: { data: {
meta: { meta: {
title: 'Account video imports' title: $localize`Account video imports`
} }
} }
}, },
@ -111,7 +111,7 @@ const myAccountRoutes: Routes = [
component: MyAccountSubscriptionsComponent, component: MyAccountSubscriptionsComponent,
data: { data: {
meta: { meta: {
title: 'Account subscriptions' title: $localize`Account subscriptions`
} }
} }
}, },
@ -120,7 +120,7 @@ const myAccountRoutes: Routes = [
component: MyAccountOwnershipComponent, component: MyAccountOwnershipComponent,
data: { data: {
meta: { meta: {
title: 'Ownership changes' title: $localize`Ownership changes`
} }
} }
}, },
@ -129,7 +129,7 @@ const myAccountRoutes: Routes = [
component: MyAccountBlocklistComponent, component: MyAccountBlocklistComponent,
data: { data: {
meta: { meta: {
title: 'Muted accounts' title: $localize`Muted accounts`
} }
} }
}, },
@ -138,7 +138,7 @@ const myAccountRoutes: Routes = [
component: MyAccountServerBlocklistComponent, component: MyAccountServerBlocklistComponent,
data: { data: {
meta: { meta: {
title: 'Muted servers' title: $localize`Muted servers`
} }
} }
}, },
@ -147,7 +147,7 @@ const myAccountRoutes: Routes = [
component: MyAccountHistoryComponent, component: MyAccountHistoryComponent,
data: { data: {
meta: { meta: {
title: 'Videos history' title: $localize`Videos history`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -160,7 +160,7 @@ const myAccountRoutes: Routes = [
component: MyAccountNotificationsComponent, component: MyAccountNotificationsComponent,
data: { data: {
meta: { meta: {
title: 'Notifications' title: $localize`Notifications`
} }
} }
}, },
@ -169,7 +169,7 @@ const myAccountRoutes: Routes = [
component: MyAccountAbusesListComponent, component: MyAccountAbusesListComponent,
data: { data: {
meta: { meta: {
title: 'My abuse reports' title: $localize`My abuse reports`
} }
} }
} }

View File

@ -10,7 +10,7 @@ const pageNotFoundRoutes: Routes = [
canActivate: [ MetaGuard ], canActivate: [ MetaGuard ],
data: { data: {
meta: { meta: {
title: 'Not found' title: $localize`Not found`
} }
} }
} }

View File

@ -10,7 +10,7 @@ const resetPasswordRoutes: Routes = [
canActivate: [ MetaGuard ], canActivate: [ MetaGuard ],
data: { data: {
meta: { meta: {
title: 'Reset password' title: `Reset password`
} }
} }
} }

View File

@ -12,7 +12,7 @@ const searchRoutes: Routes = [
canActivate: [ MetaGuard ], canActivate: [ MetaGuard ],
data: { data: {
meta: { meta: {
title: 'Search' title: $localize`Search`
} }
} }
}, },

View File

@ -11,7 +11,7 @@ const registerRoutes: Routes = [
canActivate: [ MetaGuard, UnloggedGuard ], canActivate: [ MetaGuard, UnloggedGuard ],
data: { data: {
meta: { meta: {
title: 'Register' title: $localize`Register`
} }
}, },
resolve: { resolve: {

View File

@ -14,7 +14,7 @@ const verifyAccountRoutes: Routes = [
component: VerifyAccountEmailComponent, component: VerifyAccountEmailComponent,
data: { data: {
meta: { meta: {
title: 'Verify account email' title: $localize`Verify account email`
} }
} }
}, },
@ -23,7 +23,7 @@ const verifyAccountRoutes: Routes = [
component: VerifyAccountAskSendEmailComponent, component: VerifyAccountAskSendEmailComponent,
data: { data: {
meta: { meta: {
title: 'Verify account ask send email' title: $localize`Verify account ask send email`
} }
} }
} }

View File

@ -22,7 +22,7 @@ const videoChannelsRoutes: Routes = [
component: VideoChannelVideosComponent, component: VideoChannelVideosComponent,
data: { data: {
meta: { meta: {
title: 'Video channel videos' title: $localize`Video channel videos`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -35,7 +35,7 @@ const videoChannelsRoutes: Routes = [
component: VideoChannelPlaylistsComponent, component: VideoChannelPlaylistsComponent,
data: { data: {
meta: { meta: {
title: 'Video channel playlists' title: $localize`Video channel playlists`
} }
} }
}, },
@ -44,7 +44,7 @@ const videoChannelsRoutes: Routes = [
component: VideoChannelAboutComponent, component: VideoChannelAboutComponent,
data: { data: {
meta: { meta: {
title: 'About video channel' title: $localize`About video channel`
} }
} }
} }

View File

@ -20,7 +20,7 @@ const videosRoutes: Routes = [
component: VideoOverviewComponent, component: VideoOverviewComponent,
data: { data: {
meta: { meta: {
title: 'Discover videos' title: $localize`Discover videos`
} }
} }
}, },
@ -29,7 +29,7 @@ const videosRoutes: Routes = [
component: VideoTrendingComponent, component: VideoTrendingComponent,
data: { data: {
meta: { meta: {
title: 'Trending videos' title: $localize`Trending videos`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -42,7 +42,7 @@ const videosRoutes: Routes = [
component: VideoMostLikedComponent, component: VideoMostLikedComponent,
data: { data: {
meta: { meta: {
title: 'Most liked videos' title: $localize`Most liked videos`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -55,7 +55,7 @@ const videosRoutes: Routes = [
component: VideoRecentlyAddedComponent, component: VideoRecentlyAddedComponent,
data: { data: {
meta: { meta: {
title: 'Recently added videos' title: $localize`Recently added videos`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -68,7 +68,7 @@ const videosRoutes: Routes = [
component: VideoUserSubscriptionsComponent, component: VideoUserSubscriptionsComponent,
data: { data: {
meta: { meta: {
title: 'Subscriptions' title: $localize`Subscriptions`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -81,7 +81,7 @@ const videosRoutes: Routes = [
component: VideoLocalComponent, component: VideoLocalComponent,
data: { data: {
meta: { meta: {
title: 'Local videos' title: $localize`Local videos`
}, },
reuse: { reuse: {
enabled: true, enabled: true,
@ -94,7 +94,7 @@ const videosRoutes: Routes = [
loadChildren: () => import('@app/+videos/+video-edit/video-add.module').then(m => m.VideoAddModule), loadChildren: () => import('@app/+videos/+video-edit/video-add.module').then(m => m.VideoAddModule),
data: { data: {
meta: { meta: {
title: 'Upload a video' title: $localize`Upload a video`
} }
} }
}, },
@ -103,7 +103,7 @@ const videosRoutes: Routes = [
loadChildren: () => import('@app/+videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule), loadChildren: () => import('@app/+videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule),
data: { data: {
meta: { meta: {
title: 'Edit a video' title: $localize`Edit a video`
} }
} }
}, },