diff --git a/config/locales/en.yml b/config/locales/en.yml index 6ffc82f899..59813141f4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1356,7 +1356,6 @@ en: label_my_account: "My account" label_my_account_data: "My account data" label_my_page: "My page" - label_my_page_block: "My page block" label_my_projects: "My projects" label_my_queries: "My custom queries" label_never: "Never" diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index 048101e2f0..1df9b37902 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -263,6 +263,7 @@ en: label_menu_collapse: "collapse" label_menu_expand: "expand" label_more_than_ago: "more than days ago" + label_my_page: "My page" label_next: "Next" label_no_data: "No data to display" label_no_due_date: "no end date" diff --git a/frontend/src/app/components/routing/my-page/my-page.component.html b/frontend/src/app/components/routing/my-page/my-page.component.html index c902bce924..5e500f0e76 100644 --- a/frontend/src/app/components/routing/my-page/my-page.component.html +++ b/frontend/src/app/components/routing/my-page/my-page.component.html @@ -1,3 +1,3 @@ -

My page

+

diff --git a/frontend/src/app/components/routing/my-page/my-page.component.ts b/frontend/src/app/components/routing/my-page/my-page.component.ts index e8caf236fb..62341661b3 100644 --- a/frontend/src/app/components/routing/my-page/my-page.component.ts +++ b/frontend/src/app/components/routing/my-page/my-page.component.ts @@ -3,14 +3,18 @@ import {GridDmService} from "core-app/modules/hal/dm-services/grid-dm.service"; import {GridResource} from "core-app/modules/hal/resources/grid-resource"; import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service"; import {HalResourceService} from "core-app/modules/hal/services/hal-resource.service"; +import {I18nService} from "core-app/modules/common/i18n/i18n.service"; @Component({ templateUrl: './my-page.component.html' }) export class MyPageComponent implements OnInit { + public text = { title: this.i18n.t('js.label_my_page') }; + constructor(readonly gridDm:GridDmService, readonly pathHelper:PathHelperService, - readonly halResourceService:HalResourceService) {} + readonly halResourceService:HalResourceService, + readonly i18n:I18nService) {} public grid:GridResource;