From 566230e1f798f2f439f4c2f4e45ed2242f92a9d6 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Thu, 28 Sep 2023 16:19:34 +0530 Subject: [PATCH] fix: i18n for Profile page, token page and main accounts page --- .../nc-gui/components/account/License.vue | 22 ++++++++++--------- .../nc-gui/components/account/Profile.vue | 8 ++++--- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/packages/nc-gui/components/account/License.vue b/packages/nc-gui/components/account/License.vue index 795fb16e8c..e4d780bc17 100644 --- a/packages/nc-gui/components/account/License.vue +++ b/packages/nc-gui/components/account/License.vue @@ -5,6 +5,8 @@ import { extractSdkResponseErrorMsg, useApi, useGlobal } from '#imports' const { api, isLoading } = useApi() +const { t } = useI18n() + const { $e } = useNuxtApp() const { loadAppInfo } = useGlobal() @@ -22,7 +24,7 @@ const loadLicense = async () => { const setLicense = async () => { try { await api.orgLicense.set({ key: key.value }) - message.success('License key updated') + message.success(t('success.licenseKeyUpdated')) await loadAppInfo() } catch (e: any) { message.error(await extractSdkResponseErrorMsg(e)) @@ -35,14 +37,14 @@ loadLicense() diff --git a/packages/nc-gui/components/account/Profile.vue b/packages/nc-gui/components/account/Profile.vue index 04e0f5d4d2..db959d808a 100644 --- a/packages/nc-gui/components/account/Profile.vue +++ b/packages/nc-gui/components/account/Profile.vue @@ -1,6 +1,8 @@