Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
feat(content, i18n): add translation for set-translation route name
Browse files Browse the repository at this point in the history
  • Loading branch information
Karvel committed Apr 6, 2021
1 parent a58cec0 commit ff36faa
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/features/content/content-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const routes: Routes = [
component: AgentDetailSmartComponent,
canActivate: [CanEditAuthGuard],
data: {
title: contentRoutingTranslationKeys.updateAgent,
title: contentRoutingTranslationKeys.setTranslation,
},
resolve: {
agent: resolverList.UpdateAgentResolver,
Expand Down
2 changes: 2 additions & 0 deletions src/app/infrastructure/models/translation/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ export class RoutingAuthTranslationKey implements IRoutingAuthTranslationKey {
export interface IRoutingContentTranslationKey {
agentList: string;
createAgent: string;
setTranslation: string;
updateAgent: string;
}

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';
}

Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"content": {
"agentList": "Agent List",
"createAgent": "Create Agent",
"setTranslation": "Set Translation",
"updateAgent": "Update Agent"
},
"user": {
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"content": {
"agentList": "Lista de Agentes",
"createAgent": "Crear Agente",
"setTranslation": "Establecer traducción",
"updateAgent": "Actualizar Agente"
},
"user": {
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/tl.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"content": {
"agentList": "Listahan ng Ahente",
"createAgent": "Lumikha ng Ahente",
"setTranslation": "Itakda ang pagsasalin",
"updateAgent": "I-update ang Ahente"
},
"user": {
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/vi-VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit ff36faa

Please sign in to comment.