From ff36faaac4d707ca3da760238c9ff65ba66c3c29 Mon Sep 17 00:00:00 2001 From: Elanna Grossman Date: Tue, 6 Apr 2021 03:17:09 -0700 Subject: [PATCH] feat(content, i18n): add translation for `set-translation` route name --- src/app/features/content/content-routing.module.ts | 2 +- src/app/infrastructure/models/translation/routing.ts | 2 ++ src/assets/i18n/en-US.json | 1 + src/assets/i18n/es-ES.json | 1 + src/assets/i18n/tl.json | 1 + src/assets/i18n/vi-VN.json | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/features/content/content-routing.module.ts b/src/app/features/content/content-routing.module.ts index 9073cba9..0e1be747 100644 --- a/src/app/features/content/content-routing.module.ts +++ b/src/app/features/content/content-routing.module.ts @@ -48,7 +48,7 @@ const routes: Routes = [ component: AgentDetailSmartComponent, canActivate: [CanEditAuthGuard], data: { - title: contentRoutingTranslationKeys.updateAgent, + title: contentRoutingTranslationKeys.setTranslation, }, resolve: { agent: resolverList.UpdateAgentResolver, diff --git a/src/app/infrastructure/models/translation/routing.ts b/src/app/infrastructure/models/translation/routing.ts index 3de5c5b0..22872392 100644 --- a/src/app/infrastructure/models/translation/routing.ts +++ b/src/app/infrastructure/models/translation/routing.ts @@ -45,6 +45,7 @@ export class RoutingAuthTranslationKey implements IRoutingAuthTranslationKey { export interface IRoutingContentTranslationKey { agentList: string; createAgent: string; + setTranslation: string; updateAgent: string; } @@ -52,6 +53,7 @@ export class RoutingContentTranslationKey implements IRoutingContentTranslationKey { agentList: string = 'routing.content.agentList'; createAgent: string = 'routing.content.createAgent'; + setTranslation: string = 'routing.content.setTranslation'; updateAgent: string = 'routing.content.updateAgent'; } diff --git a/src/assets/i18n/en-US.json b/src/assets/i18n/en-US.json index 191103b2..a14b9bdf 100644 --- a/src/assets/i18n/en-US.json +++ b/src/assets/i18n/en-US.json @@ -219,6 +219,7 @@ "content": { "agentList": "Agent List", "createAgent": "Create Agent", + "setTranslation": "Set Translation", "updateAgent": "Update Agent" }, "user": { diff --git a/src/assets/i18n/es-ES.json b/src/assets/i18n/es-ES.json index 8efe4415..e83b0f1a 100644 --- a/src/assets/i18n/es-ES.json +++ b/src/assets/i18n/es-ES.json @@ -219,6 +219,7 @@ "content": { "agentList": "Lista de Agentes", "createAgent": "Crear Agente", + "setTranslation": "Establecer traducción", "updateAgent": "Actualizar Agente" }, "user": { diff --git a/src/assets/i18n/tl.json b/src/assets/i18n/tl.json index 5d05f380..a749c369 100644 --- a/src/assets/i18n/tl.json +++ b/src/assets/i18n/tl.json @@ -219,6 +219,7 @@ "content": { "agentList": "Listahan ng Ahente", "createAgent": "Lumikha ng Ahente", + "setTranslation": "Itakda ang pagsasalin", "updateAgent": "I-update ang Ahente" }, "user": { diff --git a/src/assets/i18n/vi-VN.json b/src/assets/i18n/vi-VN.json index 6168f1ff..a44c8887 100644 --- a/src/assets/i18n/vi-VN.json +++ b/src/assets/i18n/vi-VN.json @@ -216,6 +216,7 @@ "content": { "agentList": "Danh sách đại lý", "createAgent": "Tạo đại lý", + "setTranslation": "Đặt bản dịch", "updateAgent": "Cập nhật đại lý" }, "user": {