From 6f2179b959317b57749df3e5cd2f59183c1b3ef4 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 2 Sep 2022 11:17:43 +0530 Subject: [PATCH] refactor: i18n for user management, api management, settings Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../components/dashboard/settings/Modal.vue | 27 ++++++++++++------- packages/nc-gui-v2/components/tabs/Auth.vue | 7 +++-- .../tabs/auth/ApiTokenManagement.vue | 20 ++++++++------ .../components/tabs/auth/UserManagement.vue | 13 +++++---- .../pages/[projectType]/[projectId]/index.vue | 1 - 5 files changed, 43 insertions(+), 25 deletions(-) diff --git a/packages/nc-gui-v2/components/dashboard/settings/Modal.vue b/packages/nc-gui-v2/components/dashboard/settings/Modal.vue index 550e461c2c..69275b4b6a 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/Modal.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/Modal.vue @@ -45,7 +45,7 @@ const { t } = useI18n() const tabsInfo: TabGroup = { teamAndAuth: { - title: 'Team and Auth', + title: t('title.teamAndAuth'), icon: TeamFillIcon, subTabs: { ...(isUIAllowed('userMgmtTab') && { @@ -65,7 +65,8 @@ const tabsInfo: TabGroup = { }, }, appStore: { - title: 'App Store', + // App Store + title: t('title.appStore'), icon: StoreFrontOutline, subTabs: { new: { @@ -75,29 +76,34 @@ const tabsInfo: TabGroup = { }, }, metaData: { - title: 'Project Metadata', + // Project Metadata + title: t('title.projMeta'), icon: MultipleTableIcon, subTabs: { metaData: { - title: 'Metadata', + // Metadata + title: t('title.metadata'), body: Metadata, }, acl: { - title: 'UI Access Control', + // UI Access Control + title: t('title.uiACL'), body: UIAcl, }, misc: { - title: 'Misc', + title: t('general.misc'), body: Misc, }, }, }, audit: { - title: 'Audit', + // Audit + title: t('title.audit'), icon: NootbookOutline, subTabs: { audit: { - title: 'Audit', + // Audit + title: t('title.audit'), body: AuditTab, }, }, @@ -136,8 +142,11 @@ watch( :closable="false" @cancel="emits('update:modelValue', false)" > +