From 686de21eae202281df94ccaa5092ec32cc614512 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 2 Sep 2022 16:20:01 +0530 Subject: [PATCH] fix: correct position for i18n include Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui-v2/composables/useExpandedFormStore.ts | 2 +- packages/nc-gui-v2/composables/useSmartsheetRowStore.ts | 3 ++- packages/nc-gui-v2/composables/useTable.ts | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui-v2/composables/useExpandedFormStore.ts b/packages/nc-gui-v2/composables/useExpandedFormStore.ts index 9dcb0eb1f4..d65338ff5a 100644 --- a/packages/nc-gui-v2/composables/useExpandedFormStore.ts +++ b/packages/nc-gui-v2/composables/useExpandedFormStore.ts @@ -17,10 +17,10 @@ import { } from '#imports' import type { Row } from '~/composables' -const { t } = useI18n() const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((meta: Ref, row: Ref) => { const { $e, $state, $api } = useNuxtApp() const { api, isLoading: isCommentsLoading, error: commentsError } = useApi() + const { t } = useI18n() const commentsOnly = ref(false) const commentsAndLogs = ref([]) diff --git a/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts b/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts index 076af3eb30..e4f0ea02f0 100644 --- a/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts +++ b/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts @@ -20,10 +20,11 @@ import { useVirtualCell, } from '#imports' -const { t } = useI18n() const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState((meta: Ref, row: MaybeRef) => { const { $api } = useNuxtApp() + const { t } = useI18n() + const { project } = useProject() const { metas } = useMetas() diff --git a/packages/nc-gui-v2/composables/useTable.ts b/packages/nc-gui-v2/composables/useTable.ts index de795e04bb..5f17ea494f 100644 --- a/packages/nc-gui-v2/composables/useTable.ts +++ b/packages/nc-gui-v2/composables/useTable.ts @@ -6,14 +6,13 @@ import { useNuxtApp } from '#app' import { TabType } from '~/composables/useTabs' import { SYSTEM_COLUMNS, extractSdkResponseErrorMsg, useProject } from '#imports' -const { t } = useI18n() export function useTable(onTableCreate?: (tableMeta: TableType) => void) { const table = reactive<{ title: string; table_name: string; columns: string[] }>({ title: '', table_name: '', columns: SYSTEM_COLUMNS, }) - + const { t } = useI18n() const { $e, $api } = useNuxtApp() const { getMeta, removeMeta } = useMetas() const { loadTables } = useProject()