diff --git a/.gitignore b/.gitignore index 7527f52..c5e39cf 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ logs .env .env.* !.env.example + +.wrangler diff --git a/app/components/chat/CommandPalette.vue b/app/components/chat/CommandPalette.vue index 24be324..68584d7 100644 --- a/app/components/chat/CommandPalette.vue +++ b/app/components/chat/CommandPalette.vue @@ -15,7 +15,7 @@ const searchTerm = ref('') const openMessageModal = ref(false) const openClearModal = ref(false) -const { t, locale } = useI18n() +const { t, locale } = useI18n({ useScope: 'global' }) const { messages, submitMessage } = useChat() const { clearMessages, messages: storeMessages } = useChatStore() @@ -72,7 +72,7 @@ const toolTipContent = { align: 'center', side: 'top', sideOffset: 0, -} +} as any const router = useRouter() function goHome() { @@ -134,7 +134,7 @@ function isRoute(name: string): boolean {
- {{ t(item.label) }} + {{ t(item.label || '') }}
{{ t(item.prompt) }} diff --git a/app/components/chat/Loading.vue b/app/components/chat/Loading.vue index 88428b6..fb59ae5 100644 --- a/app/components/chat/Loading.vue +++ b/app/components/chat/Loading.vue @@ -5,7 +5,7 @@ import { ChatState } from '~~/types' const props = defineProps<{ messageId: number, fetchStates: ChatFetchState[] }>() const currentState = ref(props.fetchStates[0] ?? undefined) const { setLoadingState } = useChatStore() -const { t } = useI18n() +const { t } = useI18n({ useScope: 'global' }) onMounted(() => { let index = 0 diff --git a/app/components/chat/Main.vue b/app/components/chat/Main.vue index c6ff12d..294f421 100644 --- a/app/components/chat/Main.vue +++ b/app/components/chat/Main.vue @@ -1,5 +1,5 @@