From 9bd231bf40c79a339c15f0753deedc5c268d9ffb Mon Sep 17 00:00:00 2001 From: reenphygeorge Date: Mon, 9 Oct 2023 00:28:15 +0530 Subject: [PATCH] fix(nc-gui): i18n for aettings and page --- .../smartsheet/expanded-form/index.vue | 4 +-- .../nc-gui/components/workspace/Settings.vue | 31 ++++++++++--------- packages/nc-gui/lang/en.json | 15 +++++++-- .../pages/index/[typeOrId]/form/[viewId].vue | 5 ++- packages/nc-gui/pages/reset/[id].vue | 7 +++-- 5 files changed, 41 insertions(+), 21 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index 7e097568f3..2cc3b92e43 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -346,7 +346,7 @@ useActiveKeyupListener( await Modal.confirm({ title: t('msg.saveChanges'), okText: t('general.save'), - cancelText: t('label.discard'), + cancelText: t('labels.discard'), onOk: async () => { await save() reloadHook?.trigger(null) @@ -360,7 +360,7 @@ useActiveKeyupListener( await Modal.confirm({ title: 'Do you want to save the record?', okText: t('general.save'), - cancelText: t('label.discard'), + cancelText: t('labels.discard'), onOk: async () => { const data = await _save(rowState.value) await syncLTARRefs(data) diff --git a/packages/nc-gui/components/workspace/Settings.vue b/packages/nc-gui/components/workspace/Settings.vue index b86adbc5c0..e987fb088f 100644 --- a/packages/nc-gui/components/workspace/Settings.vue +++ b/packages/nc-gui/components/workspace/Settings.vue @@ -1,5 +1,8 @@