Commit adfaef94 authored by Domi's avatar Domi

fix: chat docs addon

parent 121480df
<script setup lang="ts">
import { onMounted, onUnmounted, reactive, ref, watch } from "vue"
import { onMounted, onUnmounted, reactive, ref, computed } from "vue"
import IconNoteStackAdd from "@/components/icons/IconNoteStackAdd.vue"
import IconClose from "@/components/icons/IconClose.vue"
import { chatDocsPanel, docsAddon } from "@/store"
import ChatDocsPanel from "@/components/chatdocs/ChatDocsPanel.vue"
import { watchEffect } from "vue"
import { useI18n } from "@/utils/i18n"
import { sitesConfig } from "./chat"
const { t } = useI18n()
const logoUrl = chrome.runtime.getURL("/logo.svg")
......@@ -18,6 +19,12 @@ const position = reactive({
ty: 0,
})
const supported = computed(() => {
return sitesConfig.some(
(s) => s.host == location.host && s.path.test(location.pathname)
)
})
let timer = 0
watchEffect(() => {
......@@ -31,6 +38,7 @@ watchEffect(() => {
})
function onDragOver(e: DragEvent) {
if (!supported.value) return
docsAddon.visible = true
clearTimeout(timer)
timer = window.setTimeout(() => (docsAddon.visible = false), 180)
......
......@@ -3,12 +3,15 @@ import IconClose from "@/components/icons/IconClose.vue"
import IconProgressActivity from "@/components/icons/IconProgressActivity.vue"
import IconNoteStack from "@/components/icons/IconNoteStack.vue"
import type { chatDocsPanel } from "@/store"
import { useI18n } from "@/utils/i18n"
defineProps<{
item: (typeof chatDocsPanel.docMap)[0]
}>()
defineEmits(["remove", "pick"])
const { t } = useI18n()
</script>
<template>
......@@ -22,7 +25,7 @@ defineEmits(["remove", "pick"])
<IconProgressActivity v-if="item?.loading" class="w-8 h-8 animate-spin" />
<IconNoteStack v-else class="w-8 h-8" />
</div>
<div class="w-full min-w-0">
<div class="w-full min-w-0 cursor-pointer" @click="$emit('pick')">
<div class="flex items-center mb-1">
<div class="mr-auto text-base truncate">
{{ item.name }}
......@@ -35,15 +38,14 @@ defineEmits(["remove", "pick"])
<IconClose class="w-3.5 h-3.5" />
</button>
</div>
<div class="text-sm">
<div class="text-sm text-primary">
<span
>已选择{{ item.contents.filter((v) => v.selected).length }}/{{
>{{ t("selected") }}:
{{ item.contents.filter((v) => v.selected).length }}/{{
item.contents.length
}}</span
}}
{{ t("page") }}</span
>
<button class="text-primary px-2" @click="$emit('pick')">
选择范围
</button>
</div>
</div>
</div>
......
......@@ -6,46 +6,6 @@ import IconArrowCircleRight from "@/components/icons/IconArrowCircleRight.vue"
import IconClose from "@/components/icons/IconClose.vue"
import { MessageType } from "@/types"
const handleLocalChange = (changes: {
[key: string]: chrome.storage.StorageChange
}) => {
if (changes.pipWindowId) {
pipWindow.id = changes.pipWindowId.newValue
}
}
watch(
() => pipWindow.id,
async (id) => {
if (id) {
const tabs = await chrome.tabs.query({ windowId: id })
console.log("pip window tabs: ", tabs, id)
if (tabs && tabs.length == 1) {
pipWindow.tab = tabs[0]
}
return
}
pipWindow.tab = null
}
)
onMounted(() => {
chrome.storage.local
.get({ pipWindowId: null })
.then(({ pipWindowId: id }) => {
if (id) {
pipWindow.id = id
}
})
chrome.storage.local.onChanged.addListener(handleLocalChange)
})
onUnmounted(() => {
chrome.storage.local.onChanged.removeListener(handleLocalChange)
})
async function handleUpdatePip(state: "normal" | "minimized") {
await chrome.runtime.sendMessage({
type: MessageType.updateWindow,
......
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Support PDF, DOCX",
"files": "Files/Text",
"selectFile": "ተመን ወደምለዋዋጥ ወደሚነካ ወደሚገኝ ስእሎች መቀነስ ይቻላል",
"selectFile": "ስለዚህ ፋይል እንዳይምረጡ ወደኋላ ያግኙ ወደኋላ ያምር",
"msgSettings": "መልእክት ቅንዓት",
"editPrompt": "ማስቀመጥ ስለሚችል",
"maxLength": "የማከም ስልክ",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "ከመረጡ የሚያሳውቁ ተግባራዎችን ለመረጡ ይችላሉ"
},
"newFeature": "አዲስ አማራ",
"chatDocsTips": "የ ChatGPT, Bard, MS Copilot ይጠቀሙ..."
"chatDocsTips": "የ ChatGPT, Bard, MS Copilot ይጠቀሙ...",
"selected": "ተመን ቀይር ተመን ይምረጡ",
"page": "ገጾች"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "دعم PDF، DOCX",
"files": "ملفات/نص",
"selectFile": "اسحب أو انقر لاختيار ملف",
"selectFile": "اسحب أو اختر الملفات",
"msgSettings": "إعدادات الرسالة",
"editPrompt": "تحرير التلميح",
"maxLength": "الحد الأقصى للطول",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "اختر محتوى أكثر صلة بالموضوع الذي ترغب في التعلم عنه"
},
"newFeature": "ميزة جديدة",
"chatDocsTips": "دعم ChatGPT، Bard، MS Copilot..."
"chatDocsTips": "دعم ChatGPT، Bard، MS Copilot...",
"selected": "تم الاختيار",
"page": "الصفحة"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Поддръжка на PDF, DOCX",
"files": "Файлове/Текст",
"selectFile": "Плъзнете или кликнете, за да изберете файл",
"selectFile": "Плъзнете или изберете файлове",
"msgSettings": "Настройки за съобщения",
"editPrompt": "Редакция на подсказка",
"maxLength": "Максимална дължина",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Изберете съдържание, свързано с темата, за която искате да научите повече"
},
"newFeature": "Нова функционалност",
"chatDocsTips": "Поддръжка на ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Поддръжка на ChatGPT, Bard, MS Copilot...",
"selected": "Избрано",
"page": "Страница"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "সাপোর্ট করে PDF, DOCX",
"files": "ফাইল/টেক্সট",
"selectFile": "ফাইল নির্বাচন করতে ড্র্যাগ করুন বা ক্লিক করুন",
"selectFile": "ফাইল টা টেনে অথবা নির্বাচন করুন",
"msgSettings": "মেসেজ সেটিংস",
"editPrompt": "প্রম্পট সম্পাদনা",
"maxLength": "সর্বাধিক দৈর্ঘ্য",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "আপনি যে বিষয়ে আরও জানতে চান তা সম্পর্কিত কনটেন্ট চয়ন করুন"
},
"newFeature": "নতুন বৈশিষ্ট্য",
"chatDocsTips": "সাপোর্ট ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "সাপোর্ট ChatGPT, Bard, MS Copilot...",
"selected": "নির্বাচিত",
"page": "পৃষ্ঠা"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Suporta PDF, DOCX",
"files": "Fitxers/Text",
"selectFile": "Arrossega o fes clic per seleccionar un fitxer",
"selectFile": "Arrossegueu o seleccioneu fitxers",
"msgSettings": "Configuració del missatge",
"editPrompt": "Edita la indicació",
"maxLength": "Longitud màxima",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Trieu contingut més rellevant pel tema que voleu aprendre"
},
"newFeature": "Nova característica",
"chatDocsTips": "Suporta ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Suporta ChatGPT, Bard, MS Copilot...",
"selected": "Seleccionat",
"page": "Pàgina"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Podpora formátů PDF, DOCX",
"files": "Soubory/Text",
"selectFile": "Přetáhněte nebo klepněte pro výběr souboru",
"selectFile": "Přetáhněte nebo vyberte soubory",
"msgSettings": "Nastavení zprávy",
"editPrompt": "Upravit upozornění",
"maxLength": "Maximální délka",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Vyberte obsah více relevantní k tématu, které chcete studovat"
},
"newFeature": "Nová funkce",
"chatDocsTips": "Podpora ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Podpora ChatGPT, Bard, MS Copilot...",
"selected": "Vybráno",
"page": "Stránka"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Understøtter PDF, DOCX",
"files": "Filer/Text",
"selectFile": "Træk eller klik for at vælge en fil",
"selectFile": "Træk eller vælg filer",
"msgSettings": "Beskedindstillinger",
"editPrompt": "Rediger prompt",
"maxLength": "Maksimal længde",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Vælg indhold mere relevant for det emne, du ønsker at lære om"
},
"newFeature": "Ny funktion",
"chatDocsTips": "Understøtter ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Understøtter ChatGPT, Bard, MS Copilot...",
"selected": "Valgt",
"page": "Side"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Unterstützt PDF, DOCX",
"files": "Dateien/Text",
"selectFile": "Ziehen Sie die Datei hierhin oder klicken Sie, um eine Datei auszuwählen",
"selectFile": "Dateien ziehen oder auswählen",
"msgSettings": "Nachrichteneinstellungen",
"editPrompt": "Prompt bearbeiten",
"maxLength": "Maximale Länge",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Wählen Sie Inhalte, die zum gewünschten Thema passen"
},
"newFeature": "Neues Feature",
"chatDocsTips": "Unterstützt ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Unterstützt ChatGPT, Bard, MS Copilot...",
"selected": "Ausgewählt",
"page": "Seite"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Υποστήριξη PDF, DOCX",
"files": "Αρχεία/Κείμενο",
"selectFile": "Σύρετε ή κάντε κλικ για να επιλέξετε ένα αρχείο",
"selectFile": "Σύρετε ή επιλέξτε αρχεία",
"msgSettings": "Ρυθμίσεις μηνύματος",
"editPrompt": "Επεξεργασία οδηγίας",
"maxLength": "Μέγιστο μήκος",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Επιλέξτε περιεχόμενο που σχετίζεται περισσότερο με το θέμα που θέλετε να μάθετε"
},
"newFeature": "Νέα δυνατότητα",
"chatDocsTips": "Υποστήριξη ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Υποστήριξη ChatGPT, Bard, MS Copilot...",
"selected": "Επιλεγμένο",
"page": "Σελίδα"
}
\ No newline at end of file
......@@ -37,5 +37,7 @@
"startChatting": "You can start chatting now!",
"autoSending": "Auto Sending",
"chooseContentRelevant": "Choose content more relevant to the topic you want to learn about"
}
}
},
"selected": "Selected",
"page": "Page"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Soporte PDF, DOCX",
"files": "Archivos/Texto",
"selectFile": "Arrastra o haz clic para elegir un archivo",
"selectFile": "Arrastra o selecciona archivos",
"msgSettings": "Configuración de mensajes",
"editPrompt": "Editar Indicación",
"maxLength": "Longitud Máxima",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Elige contenido más relevante para el tema que deseas aprender"
},
"newFeature": "Nueva característica",
"chatDocsTips": "Compatibilidad con ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Compatibilidad con ChatGPT, Bard, MS Copilot...",
"selected": "Seleccionado",
"page": "Página"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Soporte PDF, DOCX",
"files": "Archivos/Texto",
"selectFile": "Arrastra o haz clic para elegir un archivo",
"selectFile": "Arrastra o selecciona archivos",
"msgSettings": "Configuración de mensajes",
"editPrompt": "Editar Indicación",
"maxLength": "Longitud Máxima",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Elige contenido más relevante para el tema que deseas aprender"
},
"newFeature": "Nueva característica",
"chatDocsTips": "Soporte para ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Soporte para ChatGPT, Bard, MS Copilot...",
"selected": "Seleccionado",
"page": "Página"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Toetab PDF-i, DOCX-i",
"files": "Failid/Tekst",
"selectFile": "Lohista või klõpsa faili valimiseks",
"selectFile": "Lohistage või valige failid",
"msgSettings": "Sõnumiseaded",
"editPrompt": "Muuda Viidet",
"maxLength": "Maksimaalne Pikkus",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Valige teema kohta rohkem seotud sisu"
},
"newFeature": "Uus funktsioon",
"chatDocsTips": "Toetab ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Toetab ChatGPT, Bard, MS Copilot...",
"selected": "Valitud",
"page": "Lehekülg"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "پشتیبانی از PDF، DOCX",
"files": "فایل‌ها/متن",
"selectFile": "فایل را بکشید یا برای انتخاب کلیک کنید",
"selectFile": "پرونده‌ها را بکشید یا انتخاب کنید",
"msgSettings": "تنظیمات پیام",
"editPrompt": "ویرایش هدایت",
"maxLength": "حداکثر طول",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "محتوای مرتبط با موضوعی که می‌خواهید درباره آن یاد بگیرید را انتخاب کنید"
},
"newFeature": "ویژگی جدید",
"chatDocsTips": "پشتیبانی از ChatGPT، Bard، MS Copilot..."
"chatDocsTips": "پشتیبانی از ChatGPT، Bard، MS Copilot...",
"selected": "انتخاب شده",
"page": "صفحه"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Tuki PDF, DOCX",
"files": "Tiedostot/Teksti",
"selectFile": "Raahaa tai klikkaa valitaksesi tiedosto",
"selectFile": "Raahaa tai valitse tiedostot",
"msgSettings": "Viestiasetukset",
"editPrompt": "Muokkaa Vihjetekstiä",
"maxLength": "Maksimipituus",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Valitse aiheeseesi liittyvämpi sisältö"
},
"newFeature": "Uusi ominaisuus",
"chatDocsTips": "Tuki ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Tuki ChatGPT, Bard, MS Copilot...",
"selected": "Valittu",
"page": "Sivu"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Suporta sa PDF, DOCX",
"files": "Mga File/Teksto",
"selectFile": "I-drag o i-click para pumili ng file",
"selectFile": "I-drag o piliin ang mga file",
"msgSettings": "Mga Setting ng Mensahe",
"editPrompt": "I-edit ang Prompt",
"maxLength": "Max na Habà",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Pumili ng nilalaman na mas kaugnay sa paksa na nais mong malaman"
},
"newFeature": "Bagong Tampok",
"chatDocsTips": "Suporta sa ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Suporta sa ChatGPT, Bard, MS Copilot...",
"selected": "Napili",
"page": "Pahina"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Prise en charge PDF, DOCX",
"files": "Fichiers/Texte",
"selectFile": "Faites glisser ou cliquez pour choisir un fichier",
"selectFile": "Faites glisser ou sélectionnez des fichiers",
"msgSettings": "Paramètres du message",
"editPrompt": "Éditer l'invite",
"maxLength": "Longueur maximale",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Choisissez un contenu plus pertinent pour le sujet que vous souhaitez apprendre"
},
"newFeature": "Nouvelle fonctionnalité",
"chatDocsTips": "Prise en charge de ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Prise en charge de ChatGPT, Bard, MS Copilot...",
"selected": "Sélectionné",
"page": "Page"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "પીડીએફ, ડોક્સ આધાર પર સપોર્ટ",
"files": "ફાઇલો/ટેક્સટ",
"selectFile": "ફાઇલ પસાર તથા પસંદ કરવાનું માટે ક્લિક કરો",
"selectFile": "ફાઇલો ખેંચો અથવા પસંદ કરો",
"msgSettings": "સંદેશ સેટિંગ્સ",
"editPrompt": "સૂચના સંપાદિત કરો",
"maxLength": "મહત્તમ લંબાઇ",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "તમારા શીખવાના વિષય સાથે સંબંધિત કન્ટેન્ટ પસંદ કરો"
},
"newFeature": "નવું લક્ષણ",
"chatDocsTips": "સપોર્ટ ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "સપોર્ટ ChatGPT, Bard, MS Copilot...",
"selected": "પસંદ કર્યું",
"page": "પૃષ્ઠ"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "תמיכה ב־PDF, DOCX",
"files": "קבצים/טקסט",
"selectFile": "גרור או לחץ לבחירת קובץ",
"selectFile": "גררו או בחרו קבצים",
"msgSettings": "הגדרות הודעה",
"editPrompt": "ערוך הסבר",
"maxLength": "אורך מרבי",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "בחר תוכן הקשור יותר לנושא שברצונך ללמוד עליו"
},
"newFeature": "תכונה חדשה",
"chatDocsTips": "תמיכה ב-ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "תמיכה ב-ChatGPT, Bard, MS Copilot...",
"selected": "נבחר",
"page": "עמוד"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "PDF, DOCX का समर्थन करें",
"files": "फ़ाइलें/टेक्स्ट",
"selectFile": "फ़ाइल का चयन करने के लिए खींचें या क्लिक करें",
"selectFile": "फ़ाइलें खींचें या चयन करें",
"msgSettings": "संदेश सेटिंग्स",
"editPrompt": "प्रम्पट संपादित करें",
"maxLength": "अधिकतम लंबाई",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "उस विषय के बारे में सीखना जिस पर आप चर्चा करना चाहते हैं, उससे संबंधित सामग्री चुनें"
},
"newFeature": "नई सुविधा",
"chatDocsTips": "समर्थन ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "समर्थन ChatGPT, Bard, MS Copilot...",
"selected": "चयनित",
"page": "पृष्ठ"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Podržava PDF, DOCX",
"files": "Datoteke/Tekst",
"selectFile": "Povuci ili klikni za odabir datoteke",
"selectFile": "Povucite ili odaberite datoteke",
"msgSettings": "Postavke poruke",
"editPrompt": "Uredi uputu",
"maxLength": "Maksimalna duljina",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Odaberite sadržaj koji je relevantan za temu koju želite naučiti"
},
"newFeature": "Nova značajka",
"chatDocsTips": "Podrška za ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Podrška za ChatGPT, Bard, MS Copilot...",
"selected": "Odabrano",
"page": "Stranica"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "PDF, DOCX támogatás",
"files": "Fájlok/Szöveg",
"selectFile": "Húzza vagy kattintson a fájl kiválasztásához",
"selectFile": "Húzza vagy válassza ki a fájlokat",
"msgSettings": "Üzenet beállítások",
"editPrompt": "Ugró ablak szerkesztése",
"maxLength": "Maximális hossz",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Válassza ki a témához relevánsabb tartalmat, amiről szeretne tanulni"
},
"newFeature": "Új funkció",
"chatDocsTips": "Támogatja a ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Támogatja a ChatGPT, Bard, MS Copilot...",
"selected": "Kiválasztva",
"page": "Oldal"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Dukungan PDF, DOCX",
"files": "File/Teks",
"selectFile": "Seret atau klik untuk memilih file",
"selectFile": "Seret atau pilih file",
"msgSettings": "Pengaturan Pesan",
"editPrompt": "Edit Prompt",
"maxLength": "Panjang Maksimal",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Pilih konten yang lebih relevan dengan topik yang ingin Anda pelajari"
},
"newFeature": "Fitur Baru",
"chatDocsTips": "Dukungan ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Dukungan ChatGPT, Bard, MS Copilot...",
"selected": "Dipilih",
"page": "Halaman"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Supporto PDF, DOCX",
"files": "File/Testo",
"selectFile": "Trascina o clicca per scegliere un file",
"selectFile": "Trascina o seleziona i file",
"msgSettings": "Impostazioni messaggio",
"editPrompt": "Modifica Prompt",
"maxLength": "Lunghezza massima",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Scegli contenuti più pertinenti all'argomento che vuoi apprendere"
},
"newFeature": "Nuova funzionalità",
"chatDocsTips": "Supporta ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Supporta ChatGPT, Bard, MS Copilot...",
"selected": "Selezionato",
"page": "Pagina"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "PDF、DOCX 対応",
"files": "ファイル/テキスト",
"selectFile": "ファイルを選択するにはドラッグまたはクリック",
"selectFile": "ファイルをドラッグまたは選択してください",
"msgSettings": "メッセージ設定",
"editPrompt": "プロンプトの編集",
"maxLength": "最大長",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "学びたいトピックに関連するコンテンツを選択してください"
},
"newFeature": "新機能",
"chatDocsTips": "ChatGPT、Bard、MS Copilot のサポート..."
"chatDocsTips": "ChatGPT、Bard、MS Copilot のサポート...",
"selected": "選択済み",
"page": "ページ"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "PDF, DOCX ಬೆಂಬಲ",
"files": "ಕಡತ/ಟೆಕ್ಸ್ಟ್",
"selectFile": "ಫೈಲ್ ಆಯ್ಕೆಮಾಡಲು ಎಳ್ಳಿಗೆ ಅಥವಾ ಕ್ಲಿಕ್ ಮಾಡಿ",
"selectFile": "ಫೈಲ್ಗಳನ್ನು ಎಳೆಯಿರಿ ಅಥವಾ ಆಯ್ಕೆಮಾಡಿ",
"msgSettings": "ಸಂದೇಶ ಸೆಟ್ಟಿಂಗ್ಗಳು",
"editPrompt": "ಸೂಚನೆ ಸಂಪಾದಿಸಿ",
"maxLength": "ಗರಿಷ್ಠ ಉದ್ದ",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "ನೀವು ಕಲಿಯಬಯಸುವ ವಿಷಯಕ್ಕೆ ಹೆಚ್ಚಿನ ಸಂಬಂಧಪಟ್ಟ ವಿಷಯಗಳನ್ನು ಆರಿಸಿ"
},
"newFeature": "ಹೊಸ ವಿಶೇಷವನ್ನು",
"chatDocsTips": "ChatGPT, Bard, MS Copilot ಅನ್ನು ಬೆಂಬಲಿಸುತ್ತದೆ..."
"chatDocsTips": "ChatGPT, Bard, MS Copilot ಅನ್ನು ಬೆಂಬಲಿಸುತ್ತದೆ...",
"selected": "ಆಯ್ಕೆಯಾಗಿದೆ",
"page": "ಪುಟ"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "PDF, DOCX 지원",
"files": "파일/텍스트",
"selectFile": "파일 선택하려면 끌거나 클릭하세요",
"selectFile": "파일을 드래그하거나 선택하세요",
"msgSettings": "메시지 설정",
"editPrompt": "프롬프트 편집",
"maxLength": "최대 길이",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "학습하고 싶은 주제와 관련된 콘텐츠를 선택하세요"
},
"newFeature": "새로운 기능",
"chatDocsTips": "ChatGPT, Bard, MS Copilot 지원..."
"chatDocsTips": "ChatGPT, Bard, MS Copilot 지원...",
"selected": "선택됨",
"page": "페이지"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Palaikomi PDF, DOCX",
"files": "Failai/Tekstas",
"selectFile": "Vilkite arba spustelėkite, norėdami pasirinkti failą",
"selectFile": "Vilkite arba pasirinkite failus",
"msgSettings": "Žinutės nustatymai",
"editPrompt": "Redaguoti užklausą",
"maxLength": "Maksimalus ilgis",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Pasirinkite turinį, kuris yra labiau susijęs su jumis dominančia tema"
},
"newFeature": "Nauja funkcija",
"chatDocsTips": "Palaiko ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Palaiko ChatGPT, Bard, MS Copilot...",
"selected": "Pasirinkta",
"page": "Puslapis"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Atbalsta PDF, DOCX",
"files": "Faili/Teksts",
"selectFile": "Velciet vai noklikšķiniet, lai izvēlētos failu",
"selectFile": "Velciet vai atlasiet failus",
"msgSettings": "Ziņojuma iestatījumi",
"editPrompt": "Rediģēt Uzvedības norādi",
"maxLength": "Maksimālais garums",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Izvēlieties saturu, kas ir saistīts ar tēmu, par kuru vēlaties uzzināt"
},
"newFeature": "Jauna funkcija",
"chatDocsTips": "Atbalsta ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Atbalsta ChatGPT, Bard, MS Copilot...",
"selected": "Atlasīts",
"page": "Lapa"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "പി.ഡി.എഫ്, ഡോക്സ് പിന്തുണച്ചാണ്",
"files": "കടുത്ത/എഴുത്ത്",
"selectFile": "ഫയൽ തിരഞ്ഞെടുക്കുന്നതിന് ഇങ്ങനെ അല്ലെങ്കിൽ ക്ലിക്കുചെയ്യുക",
"selectFile": "ഫയലുകൾ ഇഴുക്കുക അല്ലെങ്കിൽ തിരഞ്ഞെടുക്കുക",
"msgSettings": "സന്ദേശ ക്രമീകരണങ്ങൾ",
"editPrompt": "പ്രോംപ്റ്റ് തിരുത്തുക",
"maxLength": "പരമാവധി നീളം",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "നിങ്ങളുടെ അറിവിനായി കരുതോട്ട വിഷയത്തിനു കൂടുതൽ ബന്ധമായ ഉള്ളടക്കം തിരഞ്ഞെടുക്കുക"
},
"newFeature": "പുതിയ സവിശേഷത",
"chatDocsTips": "ChatGPT, Bard, MS Copilot പിന്തുണയ്ക്കുന്നു..."
"chatDocsTips": "ChatGPT, Bard, MS Copilot പിന്തുണയ്ക്കുന്നു...",
"selected": "തിരഞ്ഞെടുത്തു",
"page": "പേജ്"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "पीडीएफ, डॉक्स समर्थन",
"files": "फाइलें/टेक्स्ट",
"selectFile": "फाइल निवडण्यासाठी ड्रॅग किंवा क्लिक करा",
"selectFile": "फाइल ताना किंवा निवडा",
"msgSettings": "संदेश सेटिंग्ज",
"editPrompt": "प्रॉम्प्ट संपादित करा",
"maxLength": "अधिकतम लांबी",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "तुम्हाला ओळखायचं विषयसंबंधित आशय निवडा"
},
"newFeature": "नवीन सुविधा",
"chatDocsTips": "समर्थन ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "समर्थन ChatGPT, Bard, MS Copilot...",
"selected": "निवडले",
"page": "पृष्ठ"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Sokongan PDF, DOCX",
"files": "Fail/Teks",
"selectFile": "Seret atau klik untuk memilih fail",
"selectFile": "Seret atau pilih fail",
"msgSettings": "Tetapan Mesej",
"editPrompt": "Edit Prompt",
"maxLength": "Panjang Maksimum",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Pilih kandungan yang lebih berkaitan dengan topik yang anda ingin ketahui"
},
"newFeature": "Ciri Baru",
"chatDocsTips": "Sokongan ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Sokongan ChatGPT, Bard, MS Copilot...",
"selected": "Dipilih",
"page": "Halaman"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Ondersteunt PDF, DOCX",
"files": "Bestanden/Tekst",
"selectFile": "Sleep of klik om een bestand te kiezen",
"selectFile": "Sleep of selecteer bestanden",
"msgSettings": "Berichtinstellingen",
"editPrompt": "Prompt bewerken",
"maxLength": "Maximale lengte",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Kies inhoud die relevanter is voor het onderwerp dat je wilt leren"
},
"newFeature": "Nieuwe functie",
"chatDocsTips": "Ondersteuning voor ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Ondersteuning voor ChatGPT, Bard, MS Copilot...",
"selected": "Geselecteerd",
"page": "Pagina"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Støtter PDF, DOCX",
"files": "Filer/Tekst",
"selectFile": "Dra eller klikk for å velge en fil",
"selectFile": "Dra eller velg filer",
"msgSettings": "Meldingsinnstillinger",
"editPrompt": "Rediger Prompt",
"maxLength": "Maks Lengde",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Velg innhold som er mer relevant for emnet du vil lære om"
},
"newFeature": "Ny funksjon",
"chatDocsTips": "Støtte for ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Støtte for ChatGPT, Bard, MS Copilot...",
"selected": "Valgt",
"page": "Side"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Obsługa PDF, DOCX",
"files": "Pliki/Tekst",
"selectFile": "Przeciągnij lub kliknij, aby wybrać plik",
"selectFile": "Przeciągnij lub wybierz pliki",
"msgSettings": "Ustawienia Wiadomości",
"editPrompt": "Edytuj Podpowiedź",
"maxLength": "Maksymalna Długość",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Wybierz treść bardziej związana z tematem, który chcesz się dowiedzieć"
},
"newFeature": "Nowa funkcja",
"chatDocsTips": "Wsparcie dla ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Wsparcie dla ChatGPT, Bard, MS Copilot...",
"selected": "Wybrane",
"page": "Strona"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Suporte para PDF, DOCX",
"files": "Arquivos/Texto",
"selectFile": "Arraste ou clique para escolher um arquivo",
"selectFile": "Arraste ou selecione arquivos",
"msgSettings": "Configurações de Mensagem",
"editPrompt": "Editar Prompt",
"maxLength": "Comprimento Máximo",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Escolha conteúdo mais relevante para o tópico que você deseja aprender"
},
"newFeature": "Nova Funcionalidade",
"chatDocsTips": "Suporte para ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Suporte para ChatGPT, Bard, MS Copilot...",
"selected": "Selecionado",
"page": "Página"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Suporte para PDF, DOCX",
"files": "Ficheiros/Texto",
"selectFile": "Arraste ou clique para escolher um ficheiro",
"selectFile": "Arraste ou selecione ficheiros",
"msgSettings": "Configurações da Mensagem",
"editPrompt": "Editar Prompt",
"maxLength": "Comprimento Máximo",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Escolha conteúdo mais relevante para o tópico que deseja aprender"
},
"newFeature": "Nova funcionalidade",
"chatDocsTips": "Suporte a ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Suporte a ChatGPT, Bard, MS Copilot...",
"selected": "Selecionado",
"page": "Página"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Suport PDF, DOCX",
"files": "Fișiere/Text",
"selectFile": "Trage sau dă clic pentru a alege un fișier",
"selectFile": "Trageți sau selectați fișierele",
"msgSettings": "Setări Mesaj",
"editPrompt": "Editează Sfat",
"maxLength": "Lungime Maximă",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Alegeți conținut mai relevant pentru subiectul pe care doriți să îl învățați"
},
"newFeature": "Caracteristică nouă",
"chatDocsTips": "Suport pentru ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Suport pentru ChatGPT, Bard, MS Copilot...",
"selected": "Selectat",
"page": "Pagina"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Поддержка PDF, DOCX",
"files": "Файлы/Текст",
"selectFile": "Перетащите или кликните, чтобы выбрать файл",
"selectFile": "Перетащите или выберите файлы",
"msgSettings": "Настройки Сообщения",
"editPrompt": "Редактировать Подсказку",
"maxLength": "Максимальная Длина",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Выберите более релевантный контент по теме, которую вы хотите изучить"
},
"newFeature": "Новая функция",
"chatDocsTips": "Поддержка ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Поддержка ChatGPT, Bard, MS Copilot...",
"selected": "Выбрано",
"page": "Страница"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Podpora pre PDF, DOCX",
"files": "Súbory/Text",
"selectFile": "Potiahnite alebo kliknite na výber súboru",
"selectFile": "Potiahnite alebo vyberte súbory",
"msgSettings": "Nastavenia Správy",
"editPrompt": "Upraviť Prompt",
"maxLength": "Maximálna Dĺžka",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Vyberte obsah, ktorý je viac relevantný pre tému, ktorú chcete študovať"
},
"newFeature": "Nová funkcia",
"chatDocsTips": "Podpora ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Podpora ChatGPT, Bard, MS Copilot...",
"selected": "Vybrané",
"page": "Stránka"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Podpora za PDF, DOCX",
"files": "Datoteke/Besedilo",
"selectFile": "Povleci ali klikni za izbiro datoteke",
"selectFile": "Povleci ali izberi datoteke",
"msgSettings": "Nastavitve Sporočila",
"editPrompt": "Uredi Vprašanje",
"maxLength": "Največja Dolžina",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Izberite vsebino, ki je bolj relevantna za temo, ki se je želite naučiti"
},
"newFeature": "Nova funkcionalnost",
"chatDocsTips": "Podpora za ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Podpora za ChatGPT, Bard, MS Copilot...",
"selected": "Izbrano",
"page": "Stran"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Podrška za PDF, DOCX",
"files": "Fajlovi/Tekst",
"selectFile": "Prevuci ili klikni da izabereš fajl",
"selectFile": "Prevucite ili izaberite fajlove",
"msgSettings": "Podešavanja Poruke",
"editPrompt": "Uredi Prompt",
"maxLength": "Maksimalna Dužina",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Izaberite sadržaj koji je relevantniji za temu koju želite naučiti"
},
"newFeature": "Nova funkcionalnost",
"chatDocsTips": "Podrška za ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Podrška za ChatGPT, Bard, MS Copilot...",
"selected": "Izabrano",
"page": "Stranica"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Stöd för PDF, DOCX",
"files": "Filer/Text",
"selectFile": "Dra eller klicka för att välja en fil",
"selectFile": "Dra eller välj filer",
"msgSettings": "Meddelandeinställningar",
"editPrompt": "Redigera Prompt",
"maxLength": "Max längd",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Välj innehåll som är mer relevant för det ämne du vill lära dig om"
},
"newFeature": "Ny funktion",
"chatDocsTips": "Stöd för ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Stöd för ChatGPT, Bard, MS Copilot...",
"selected": "Vald",
"page": "Sida"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Support PDF, DOCX",
"files": "Files/Text",
"selectFile": "Drag au bonyeza kuchagua faili",
"selectFile": "Buruta au chagua faili",
"msgSettings": "Mipangilio ya Ujumbe",
"editPrompt": "Hariri Prompt",
"maxLength": "Urefu Maksimumu",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Chagua yaliyomo inayohusiana zaidi na mada unayotaka kujifunza kuhusu"
},
"newFeature": "Kipengele Kipya",
"chatDocsTips": "Msaada wa ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Msaada wa ChatGPT, Bard, MS Copilot...",
"selected": "Imechaguliwa",
"page": "Ukurasa"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "பிடிஎஃப், டாக்ஸ் ஆதரித்துள்ளது",
"files": "கோப்புகள்/உரை",
"selectFile": "கோப்பை தந்து அல்லது கிளிக் செய்வதற்கு எழுதி",
"selectFile": "கோப்புகளை இழுத்து அல்லது தேர்ந்தெடுக்கவும்",
"msgSettings": "செய்தி அமைப்புகள்",
"editPrompt": "எடிட் ப்ராம்ப்ட்",
"maxLength": "அதிக நீளம்",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "நீங்கள் அறிந்திருக்க விரும்பும் பகுதிக்கு உரையாடல் தேர்ந்தெடுக்கவும்"
},
"newFeature": "புதிய அம்சம்",
"chatDocsTips": "ChatGPT, Bard, MS Copilot க்கு ஆதரவு..."
"chatDocsTips": "ChatGPT, Bard, MS Copilot க்கு ஆதரவு...",
"selected": "தேர்ந்தெடுக்கப்பட்டது",
"page": "பக்கம்"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "యొక్క మద్దతు PDF, DOCX",
"files": "ఫైళ్ళు/వచనం",
"selectFile": "ఫైల్ ఎంచుకోవడానికి అథవా నొక్కండా క్లిక్ చేయడానికి లాగండి",
"selectFile": "ఫైళ్లను వలయాక లేదా ఎంచుకోండి",
"msgSettings": "సందేశం సెట్టింగ్స్",
"editPrompt": "సవరించండి ప్రాంప్ట్",
"maxLength": "అత్యధిక పొడవు",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "మీరు కలిగిన విషయానికి అనుసంధానం కలిగిన కంటెంట్ ఎంచుకోండి"
},
"newFeature": "కొత్త లక్షణం",
"chatDocsTips": "మద్దతు ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "మద్దతు ChatGPT, Bard, MS Copilot...",
"selected": "ఎంచుకోబడింది",
"page": "పేజీ"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "รองรับ PDF, DOCX",
"files": "ไฟล์/ข้อความ",
"selectFile": "ลากรูปหรือคลิกเพื่อเลือกไฟล์",
"selectFile": "ลากรูปหรือเลือกไฟล์",
"msgSettings": "ตั้งค่าข้อความ",
"editPrompt": "แก้ไข Prompt",
"maxLength": "ความยาวสูงสุด",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "เลือกเนื้อหาที่เกี่ยวข้องมากขึ้นกับหัวข้อที่คุณต้องการเรียนรู้"
},
"newFeature": "คุณลักษณะใหม่",
"chatDocsTips": "สนับสนุน ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "สนับสนุน ChatGPT, Bard, MS Copilot...",
"selected": "เลือก",
"page": "หน้า"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "PDF, DOCX Desteği",
"files": "Dosyalar/Metin",
"selectFile": "Bir dosya seçmek için sürükleyin veya tıklayın",
"selectFile": "Dosyaları sürükleyin veya seçin",
"msgSettings": "Mesaj Ayarları",
"editPrompt": "Prompt'u Düzenle",
"maxLength": "Maksimum Uzunluk",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Öğrenmek istediğiniz konuyla daha ilgili içerik seçin"
},
"newFeature": "Yeni Özellik",
"chatDocsTips": "ChatGPT, Bard, MS Copilot Desteği..."
"chatDocsTips": "ChatGPT, Bard, MS Copilot Desteği...",
"selected": "Seçildi",
"page": "Sayfa"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Підтримка PDF, DOCX",
"files": "Файли/Текст",
"selectFile": "Перетягніть або клацніть, щоб вибрати файл",
"selectFile": "Перетягніть або виберіть файли",
"msgSettings": "Налаштування повідомлення",
"editPrompt": "Редагувати Prompt",
"maxLength": "Максимальна довжина",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Виберіть вміст, який більше відповідає темі, яку ви хочете вивчити"
},
"newFeature": "Нова функція",
"chatDocsTips": "Підтримка ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Підтримка ChatGPT, Bard, MS Copilot...",
"selected": "Вибрано",
"page": "Сторінка"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "Hỗ trợ PDF, DOCX",
"files": "Tệp/Chữ",
"selectFile": "Kéo hoặc nhấp để chọn tệp",
"selectFile": "Kéo hoặc chọn tệp",
"msgSettings": "Cài đặt Tin nhắn",
"editPrompt": "Chỉnh sửa Prompt",
"maxLength": "Độ dài tối đa",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "Chọn nội dung liên quan hơn đến chủ đề bạn muốn tìm hiểu"
},
"newFeature": "Tính năng Mới",
"chatDocsTips": "Hỗ trợ ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "Hỗ trợ ChatGPT, Bard, MS Copilot...",
"selected": "Đã chọn",
"page": "Trang"
}
\ No newline at end of file
......@@ -37,5 +37,7 @@
"startChatting": "你可以开始聊天了!",
"autoSending": "自动发送",
"chooseContentRelevant": "选择与你想了解的主题更相关的内容"
}
},
"selected": "已选择",
"page": "页"
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
"chatDocs": {
"supportFormat": "支持 PDF、DOCX",
"files": "文件/文本",
"selectFile": "拖拉或點擊以選擇文件",
"selectFile": "拖曳或選擇檔案",
"msgSettings": "消息設置",
"editPrompt": "編輯提示",
"maxLength": "最大長度",
......@@ -37,5 +37,7 @@
"chooseContentRelevant": "選擇與你想了解的主題更相關的內容"
},
"newFeature": "新功能",
"chatDocsTips": "支援 ChatGPT, Bard, MS Copilot..."
"chatDocsTips": "支援 ChatGPT, Bard, MS Copilot...",
"selected": "已選擇",
"page": "頁"
}
\ No newline at end of file
......@@ -5,7 +5,7 @@ const contentCss = "/assets/index.css"
const manifest = {
manifest_version: 3,
// maximum of 45 characters
name: "AAA __MSG_name__",
name: "__MSG_name__",
// edge 12 characters
// short_name: "__MSG_short_name__",
// no more than 132 characters
......
......@@ -41,6 +41,22 @@ const host = computed({
// return false
// })
watch(
() => pipWindow.id,
async (id) => {
console.log("pip window tabs: ", id)
if (id) {
const tabs = await chrome.tabs.query({ windowId: id })
if (tabs && tabs.length == 1) {
pipWindow.tab = tabs[0]
}
return
}
pipWindow.tab = null
}
)
onMounted(() => {
chrome.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
console.log(tabs)
......@@ -144,34 +160,36 @@ function showChatDocs() {
</div>
</div>
<PipWindowActions />
<PipWindowActions v-if="pipWindow.tab && pipWindow.tab.id" />
<div class="flex items-center text-sm mt-6">
<span
class="w-4 h-4 inline-block mr-2 rounded"
:style="{
background:
'#8882 center / contain url(' + activeTab?.favIconUrl + ')',
}"
></span>
<span class="inline-block truncate">{{ host }}</span>
</div>
<template v-else>
<div class="flex items-center text-sm mt-6">
<span
class="w-4 h-4 inline-block mr-2 rounded"
:style="{
background:
'#8882 center / contain url(' + activeTab?.favIconUrl + ')',
}"
></span>
<span class="inline-block truncate">{{ host }}</span>
</div>
<button
:class="[
'w-full bg-sky-800 text-white flex items-center mt-2 rounded-lg p-2 px-3',
{
'cursor-not-allowed': !avaiable,
},
]"
@click="handleWriteHtml"
>
<span class="text-base">{{ t("openInPip") }}</span>
</button>
<button
:class="[
'w-full bg-sky-800 text-white flex items-center mt-2 rounded-lg p-2 px-3',
{
'cursor-not-allowed': !avaiable,
},
]"
@click="handleWriteHtml"
>
<span class="text-base">{{ t("openInPip") }}</span>
</button>
<div v-if="!avaiable" class="text-sm leading-4 text-rose-800">
{{ t("protectedTabTips") }}
</div>
<div v-if="!avaiable" class="text-sm leading-4 text-rose-800">
{{ t("protectedTabTips") }}
</div>
</template>
<div class="mt-6">
<div class="my-3 flex items-center">
......
......@@ -22,16 +22,16 @@ def cli(ctx, d: str, filename: str):
ctx.obj['locales_dir'] = locales_dir
ctx.obj['items'] = items
# extract the locale
# extract updated i18n items
@cli.command()
@click.option('-k','--keep', default=['en', 'zh-CN'], multiple=True, help="keep language")
@click.option('-u','--updated', default=['en', 'zh-CN'], multiple=True, help="updated i18n items")
@click.option('-r', '--ref', default='ja', help="diff reference language")
@click.option('-e','--empty', default=True, help="output empty language")
@click.option('-o', default='-', help="output")
@click.option('-l', default=9999, type=int, help="keys limit")
@click.pass_context
def extract(ctx, keep, ref, empty=True, o='-', l=9999):
def extract(ctx, updated, ref, empty=True, o='-', l=9999):
items = ctx.obj['items']
msgs = {
......@@ -43,9 +43,13 @@ def extract(ctx, keep, ref, empty=True, o='-', l=9999):
code: [key for key in msgs[code].keys() if key not in ref_msg.keys()]
for code in items.keys()
}
def get_diff(d, r):
return { k: d for k in d.keys() if k not in r.keys() }
new_data = {
code: {key: msgs[code][key] for key in new_keys[code][0:l]}
for code in items.keys() if code in keep or (empty and len(new_keys[code]) == 0)
for code in items.keys() if code in updated or (empty and len(new_keys[code]) == 0)
}
print(json.dumps(new_data, ensure_ascii=False, indent=4))
......@@ -58,6 +62,14 @@ def update(ctx, t):
locales_dir = ctx.obj['locales_dir']
translated_path = path.realpath(t)
def merge(d, d2):
n = {**d}
for k, v in d2.items():
n[k] = v if type(v) == str else merge(n[k], v)
return n
def update_msg(code, content):
filename = code.replace('_', '-')
msg_path = path.join(locales_dir, f'{filename}.json')
......@@ -66,10 +78,7 @@ def update(ctx, t):
msg = json.load(open(msg_path, 'r', encoding='utf8'))
json.dump(
{
**msg,
**content,
},
merge(msg, content),
open(msg_path, 'w+', encoding='utf8'),
ensure_ascii=False,
indent=2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment