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()