From 4b288ce85a980f81baba72a3afbb12ee958dac32 Mon Sep 17 00:00:00 2001 From: durunsong Date: Mon, 18 Nov 2024 11:52:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=A9feat=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E8=AF=AD=E8=A8=80=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TourVisible/index.vue | 23 ++++++++++++++----- src/i18n/package/ara.ts | 21 ++++++++++++++++++ src/i18n/package/de.ts | 21 ++++++++++++++++++ src/i18n/package/el.ts | 21 ++++++++++++++++++ src/i18n/package/en.ts | 21 ++++++++++++++++++ src/i18n/package/fra.ts | 21 ++++++++++++++++++ src/i18n/package/it.ts | 21 ++++++++++++++++++ src/i18n/package/jp.ts | 21 ++++++++++++++++++ src/i18n/package/kor.ts | 21 ++++++++++++++++++ src/i18n/package/nl.ts | 21 ++++++++++++++++++ src/i18n/package/pl.ts | 21 ++++++++++++++++++ src/i18n/package/pt.ts | 21 ++++++++++++++++++ src/i18n/package/rom.ts | 21 ++++++++++++++++++ src/i18n/package/ru.ts | 21 ++++++++++++++++++ src/i18n/package/spa.ts | 21 ++++++++++++++++++ src/i18n/package/swe.ts | 21 ++++++++++++++++++ src/i18n/package/zh.ts | 21 ++++++++++++++++++ src/utils/elTourDataOptions.ts | 33 +++++++++++++++------------- 18 files changed, 371 insertions(+), 21 deletions(-) diff --git a/src/components/TourVisible/index.vue b/src/components/TourVisible/index.vue index 28505c7..486c458 100644 --- a/src/components/TourVisible/index.vue +++ b/src/components/TourVisible/index.vue @@ -4,10 +4,14 @@ v-for="(item, index) in props.data" :key="index" :target="item.target" - :title="item.title ? item.title : `第${currentStep + 1}步`" + :title=" + item.title + ? item.title + : t('tour_step', { currentStep: currentStep + 1 }) + " :description="item.description" :prev-button-props="{ - children: '上一步', + children: t('tour_prev'), onClick: handlePrevClick, }" :next-button-props="{ @@ -17,7 +21,9 @@ :placement="item.placement" > @@ -26,7 +32,9 @@ import { ref, computed, type Ref, type ComputedRef } from "vue"; import CACHE_KEY from "@/constants/cache-key"; import { setLocalData } from "@/utils/cache/local-storage"; +import { useI18n } from "vue-i18n"; +const { t } = useI18n(); const props = defineProps(["data"]); const emits = defineEmits([ "change", @@ -46,11 +54,14 @@ const open: Ref = ref(false); const nextBtnName: ComputedRef = computed(() => { let name = ""; if (currentStep.value === 0) { - name = "开始"; + name = t("tour_start"); } else if (currentStep.value === props.data.length - 1) { - name = "完成"; + name = t("tour_complete"); } else { - name = `下一步(${currentStep.value + 1} / ${props.data.length})`; + name = t("tour_nextStep", { + currentStep: currentStep.value + 1, + totalSteps: props.data.length, + }); } return name; }); diff --git a/src/i18n/package/ara.ts b/src/i18n/package/ara.ts index 7d28b17..0b68b31 100644 --- a/src/i18n/package/ara.ts +++ b/src/i18n/package/ara.ts @@ -245,6 +245,27 @@ const ara = { Selecting_a_Character: "اختيار الأدوار", Get_Success: "الحصول على النجاح", error_occurs: "حدث خطأ", + tour_step: "الخطوة { currentstep }", + tour_start: "نقطة الانطلاق", + tour_complete: "اكتمل", + tour_nextStep: "الخطوة التالية ( { currentstep } / { totalsteps }", + tour_prev: "الصفحة السابقة", + tour_skip: "تخطي", + tour_welcomeTitle: "مرحبا بكم في kilyicms", + tour_welcomeDescription: "انقر على الاستمرار", + tour_menuDescription: "قائمة الشريط الجانبي الأيسر", + tour_toggleButtonDescription: "زر توسيع / للطي", + tour_breadcrumbDescription: "فتات الخبز الملاحة", + tour_tabNavigationDescription: "تبويب الملاحة", + tour_menuSearchDescription: "قائمة البحث", + tour_fullscreenDescription: "كامل الشاشة التبديل", + tour_themeSwitchDescription: "موضوع التبديل", + tour_languageSwitchTitle: "تدويل", + tour_languageSwitchDescription: "لغة التبديل", + tour_notificationDescription: "رسالة الإخطار", + tour_userSettingsDescription: "إعدادات المستخدم", + tour_customSettingsTitle: "إعدادات مخصصة", + tour_customSettingsDescription: "إعدادات النظام", }; export default ara; diff --git a/src/i18n/package/de.ts b/src/i18n/package/de.ts index cd317fc..f07b894 100644 --- a/src/i18n/package/de.ts +++ b/src/i18n/package/de.ts @@ -248,5 +248,26 @@ const de = { Selecting_a_Character: "Auswählen eines Zeichens", Get_Success: "Erfolg erzielen", error_occurs: "Fehler tritt auf", + tour_step: "Schritt {currentStep}", + tour_start: "Start", + tour_complete: "Vollständig", + tour_nextStep: "Nächster Schritt ({currentStep}/ {totalSteps})", + tour_prev: "Vorherige", + tour_skip: "Überspringen", + tour_welcomeTitle: "Willkommen in Kilyicms", + tour_welcomeDescription: "Klicken Sie hier, um die Einführung fortzusetzen", + tour_menuDescription: "Menü der linken Seitenleiste", + tour_toggleButtonDescription: "Schaltfläche Erweitern/Zusammenklappen", + tour_breadcrumbDescription: "Breadcrumb Navigation", + tour_tabNavigationDescription: "Tab-Navigation", + tour_menuSearchDescription: "Menüsuche", + tour_fullscreenDescription: "Vollbild-Umschalter", + tour_themeSwitchDescription: "Theme-Schalter", + tour_languageSwitchTitle: "Internationalisierung", + tour_languageSwitchDescription: "Sprachumschaltung", + tour_notificationDescription: "Mitteilungen", + tour_userSettingsDescription: "Benutzereinstellungen", + tour_customSettingsTitle: "Benutzerdefinierte Einstellungen", + tour_customSettingsDescription: "Systemeinstellungen", }; export default de; diff --git a/src/i18n/package/el.ts b/src/i18n/package/el.ts index b25e7eb..3a6bc1d 100644 --- a/src/i18n/package/el.ts +++ b/src/i18n/package/el.ts @@ -254,6 +254,27 @@ const el = { Selecting_a_Character: "Επιλογή ενός χαρακτήρα", Get_Success: "Αποκτήστε επιτυχία", error_occurs: "Εμφανίζεται σφάλμα", + tour_step: "Βήμα {currentStep}", + tour_start: "Έναρξη", + tour_complete: "Ολοκληρωμένο", + tour_nextStep: "Επόμενο βήμα ({currentStep}/ {totalSteps})", + tour_prev: "Προηγούμενο", + tour_skip: "Παράλειψη", + tour_welcomeTitle: "Καλώς ήρθατε στο Kilyicms", + tour_welcomeDescription: "Κάντε κλικ για να συνεχίσετε την εισαγωγή", + tour_menuDescription: "Μενού αριστερής πλευρικής γραμμής", + tour_toggleButtonDescription: "Κουμπί επέκτασης/συμπίεσης", + tour_breadcrumbDescription: "Πλοήγηση ψωμιού", + tour_tabNavigationDescription: "Πλοήγηση καρτέλας", + tour_menuSearchDescription: "Αναζήτηση μενού", + tour_fullscreenDescription: "Εναλλαγή πλήρους οθόνης", + tour_themeSwitchDescription: "Διακόπτης θέματος", + tour_languageSwitchTitle: "Διεθνοποίηση", + tour_languageSwitchDescription: "Αλλαγή γλώσσας", + tour_notificationDescription: "Ειδοποιήσεις μηνυμάτων", + tour_userSettingsDescription: "Ρυθμίσεις χρήστη", + tour_customSettingsTitle: "Προσαρμοσμένες ρυθμίσεις", + tour_customSettingsDescription: "Ρυθμίσεις συστήματος", }; export default el; diff --git a/src/i18n/package/en.ts b/src/i18n/package/en.ts index 6610908..081462b 100644 --- a/src/i18n/package/en.ts +++ b/src/i18n/package/en.ts @@ -252,6 +252,27 @@ const en = { Get_Success: "Get Success", error_occurs: "Error occurs", router_translation_process: "Translation process", + tour_step: "Step {currentStep}", + tour_start: "Start", + tour_complete: "Complete", + tour_nextStep: "Next Step ({currentStep} / {totalSteps})", + tour_prev: "Previous", + tour_skip: "Skip", + tour_welcomeTitle: "Welcome to Kilyicms", + tour_welcomeDescription: "Click to continue the introduction", + tour_menuDescription: "Left sidebar menu", + tour_toggleButtonDescription: "Expand/Collapse button", + tour_breadcrumbDescription: "Breadcrumb navigation", + tour_tabNavigationDescription: "Tab navigation", + tour_menuSearchDescription: "Menu search", + tour_fullscreenDescription: "Fullscreen toggle", + tour_themeSwitchDescription: "Theme switch", + tour_languageSwitchTitle: "Internationalization", + tour_languageSwitchDescription: "Language switch", + tour_notificationDescription: "Message notifications", + tour_userSettingsDescription: "User settings", + tour_customSettingsTitle: "Custom Settings", + tour_customSettingsDescription: "System settings", }; export default en; diff --git a/src/i18n/package/fra.ts b/src/i18n/package/fra.ts index b084d42..c418052 100644 --- a/src/i18n/package/fra.ts +++ b/src/i18n/package/fra.ts @@ -251,6 +251,27 @@ const fra = { Selecting_a_Character: "Choisir un rôle", Get_Success: "Obtenir le succès", error_occurs: "Une erreur est survenue", + tour_step: "Étape {currentstep}", + tour_start: "Point de départ", + tour_complete: "Terminé", + tour_nextStep: "Suivant ({currentstep} / {totalsteps})", + tour_prev: "Page précédente", + tour_skip: "Sauter", + tour_welcomeTitle: "Bienvenue à kilyicms", + tour_welcomeDescription: "Cliquez pour continuer Introduction", + tour_menuDescription: "Menu de la barre latérale gauche", + tour_toggleButtonDescription: "Bouton déplier / plier", + tour_breadcrumbDescription: "Navigation des miettes", + tour_tabNavigationDescription: "Navigation des onglets", + tour_menuSearchDescription: "Menu recherche", + tour_fullscreenDescription: "Commutation plein écran", + tour_themeSwitchDescription: "Changement de thème", + tour_languageSwitchTitle: "Internationalisation", + tour_languageSwitchDescription: "Changement de langue", + tour_notificationDescription: "Notification des messages", + tour_userSettingsDescription: "Paramètres utilisateur", + tour_customSettingsTitle: "Paramètres personnalisés", + tour_customSettingsDescription: "Paramètres du système", }; export default fra; diff --git a/src/i18n/package/it.ts b/src/i18n/package/it.ts index 4208cbf..0c3047f 100644 --- a/src/i18n/package/it.ts +++ b/src/i18n/package/it.ts @@ -248,6 +248,27 @@ const it = { Selecting_a_Character: "Selezione di un carattere", Get_Success: "Ottenere successo", error_occurs: "Si verifica un errore", + tour_step: "Passo {currentStep}", + tour_start: "inizio", + tour_complete: "Completato", + tour_nextStep: "Passaggio successivo ({currentStep} / {totalSteps})", + tour_prev: "Precedente", + tour_skip: "Salta", + tour_welcomeTitle: "Benvenuti a Kilyicms", + tour_welcomeDescription: "Clicca per continuare l'introduzione", + tour_menuDescription: "Menu della barra laterale sinistra", + tour_toggleButtonDescription: "Pulsante Espandi/Riduci", + tour_breadcrumbDescription: "Navigazione breadcrumb", + tour_tabNavigationDescription: "Navigazione delle schede", + tour_menuSearchDescription: "Ricerca menu", + tour_fullscreenDescription: "Commutazione a schermo intero", + tour_themeSwitchDescription: "Cambia tema", + tour_languageSwitchTitle: "Internazionalizzazione", + tour_languageSwitchDescription: "Cambio lingua", + tour_notificationDescription: "Notifiche dei messaggi", + tour_userSettingsDescription: "Impostazioni utente", + tour_customSettingsTitle: "Impostazioni personalizzate", + tour_customSettingsDescription: "Impostazioni di sistema", }; export default it; diff --git a/src/i18n/package/jp.ts b/src/i18n/package/jp.ts index 6e66eff..04038e2 100644 --- a/src/i18n/package/jp.ts +++ b/src/i18n/package/jp.ts @@ -245,5 +245,26 @@ const jp = { Selecting_a_Character: "ロールの選択", Get_Success: "取得に成功しました", error_occurs: "エラーが発生しました", + tour_step: "ステップ{currentStep}", + tour_start: "スタート", + tour_complete: "完了", + tour_nextStep: "次へ({currentStep}/{totalSteps})", + tour_prev: "前へ", + tour_skip: "スキップ", + tour_welcomeTitle: "kilyicmsへようこそ", + tour_welcomeDescription: "続行をクリックして紹介を開始します", + tour_menuDescription: "左のメニューバー", + tour_toggleButtonDescription: "折りたたみボタンを展開", + tour_breadcrumbDescription: "パン屑ナビゲーション", + tour_tabNavigationDescription: "タブページのナビゲーション", + tour_menuSearchDescription: "メニュー検索", + tour_fullscreenDescription: "全画面切り替え", + tour_themeSwitchDescription: "トピックの切り替え", + tour_languageSwitchTitle: "国際化", + tour_languageSwitchDescription: "多言語切り替え", + tour_notificationDescription: "メッセージ通知", + tour_userSettingsDescription: "個人設定", + tour_customSettingsTitle: "カスタム設定", + tour_customSettingsDescription: "システム設定", }; export default jp; diff --git a/src/i18n/package/kor.ts b/src/i18n/package/kor.ts index cd2738b..5878309 100644 --- a/src/i18n/package/kor.ts +++ b/src/i18n/package/kor.ts @@ -244,5 +244,26 @@ const kor = { Selecting_a_Character: "역할 선택", Get_Success: "성공", error_occurs: "오류 발생", + tour_step: "{currentStep} 단계", + tour_start: "시작", + tour_complete: "완료", + tour_nextStep: "다음({currentStep} / {totalSteps})", + tour_prev: "이전 단계", + tour_skip: "건너뛰기", + tour_welcomeTitle: "kilyicms에 오신 것을 환영합니다.", + tour_welcomeDescription: "클릭하여 계속 소개 시작", + tour_menuDescription: "왼쪽 메뉴 표시줄", + tour_toggleButtonDescription: "확장 축소 버튼", + tour_breadcrumbDescription: "빵 부스러기 내비게이션", + tour_tabNavigationDescription: "탭 탐색", + tour_menuSearchDescription: "메뉴 검색", + tour_fullscreenDescription: "전체 화면 전환", + tour_themeSwitchDescription: "테마 전환", + tour_languageSwitchTitle: "국제화", + tour_languageSwitchDescription: "다국어 전환", + tour_notificationDescription: "메시지 알림", + tour_userSettingsDescription: "개인 설정", + tour_customSettingsTitle: "사용자 정의 설정", + tour_customSettingsDescription: "시스템 설정", }; export default kor; diff --git a/src/i18n/package/nl.ts b/src/i18n/package/nl.ts index 13fb228..deedf84 100644 --- a/src/i18n/package/nl.ts +++ b/src/i18n/package/nl.ts @@ -245,6 +245,27 @@ const nl = { Selecting_a_Character: "Een teken selecteren", Get_Success: "Succes behalen", error_occurs: "Fout treedt op", + tour_step: "Stap {currentStep}", + tour_start: "Start", + tour_complete: "Compleet", + tour_nextStep: "Volgende stap ({currentStep}/ {totalSteps})", + tour_prev: "Vorige", + tour_skip: "Skip", + tour_welcomeTitle: "Welkom in Kilyicms", + tour_welcomeDescription: "Klik om de introductie voort te zetten", + tour_menuDescription: "Menu aan de linkerkant", + tour_toggleButtonDescription: "Knop uitvouwen/samenvouwen", + tour_breadcrumbDescription: "Broodkrumb navigatie", + tour_tabNavigationDescription: "Tabbladnavigatie", + tour_menuSearchDescription: "Menu zoeken", + tour_fullscreenDescription: "Volledig scherm omschakelen", + tour_themeSwitchDescription: "Themaschakelaar", + tour_languageSwitchTitle: "Internationalisering", + tour_languageSwitchDescription: "Taalschakelaar", + tour_notificationDescription: "Berichtmeldingen", + tour_userSettingsDescription: "Gebruikersinstellingen", + tour_customSettingsTitle: "Aangepaste instellingen", + tour_customSettingsDescription: "Systeeminstellingen", }; export default nl; diff --git a/src/i18n/package/pl.ts b/src/i18n/package/pl.ts index 68121a6..b4c46a4 100644 --- a/src/i18n/package/pl.ts +++ b/src/i18n/package/pl.ts @@ -249,6 +249,27 @@ const pl = { Selecting_a_Character: "Wybieranie znaku", Get_Success: "Uzyskaj sukces", error_occurs: "Występuje błąd", + tour_step: "Krok {currentStep}", + tour_start: "Uruchom", + tour_complete: "Kompletny", + tour_nextStep: "Następny krok ({currentStep}/ {totalSteps})", + tour_prev: "Poprzednie", + tour_skip: "Pomiń", + tour_welcomeTitle: "Witamy w Kilyicms", + tour_welcomeDescription: "Kliknij, aby kontynuować wprowadzenie", + tour_menuDescription: "Menu na lewym pasku bocznym", + tour_toggleButtonDescription: "Przycisk Rozwiń/Zwiń", + tour_breadcrumbDescription: "Nawigacja chlebowa", + tour_tabNavigationDescription: "Nawigacja kart", + tour_menuSearchDescription: "Wyszukiwanie menu", + tour_fullscreenDescription: "Przełączanie pełnego ekranu", + tour_themeSwitchDescription: "Przełącznik motywu", + tour_languageSwitchTitle: "Międzynarodowienie", + tour_languageSwitchDescription: "Przełącznik języka", + tour_notificationDescription: "Powiadomienia o wiadomościach", + tour_userSettingsDescription: "Ustawienia użytkownika", + tour_customSettingsTitle: "Ustawienia niestandardowe", + tour_customSettingsDescription: "Ustawienia systemowe", }; export default pl; diff --git a/src/i18n/package/pt.ts b/src/i18n/package/pt.ts index 413b0ce..b701376 100644 --- a/src/i18n/package/pt.ts +++ b/src/i18n/package/pt.ts @@ -247,6 +247,27 @@ const pt = { Selecting_a_Character: "Seleccionar um Caractere", Get_Success: "Obter Sucesso", error_occurs: "Ocorre um erro", + tour_step: "Passo {currentStep}", + tour_start: "Iniciar", + tour_complete: "Completo", + tour_nextStep: "Próximo Passo ({currentStep} / {totalSteps})", + tour_prev: "Anterior", + tour_skip: "Saltar", + tour_welcomeTitle: "Bem-vindos a Kilyicms.", + tour_welcomeDescription: "Carregue para continuar a introdução", + tour_menuDescription: "Menu da barra lateral esquerda", + tour_toggleButtonDescription: "Botão Expandir/Recolher", + tour_breadcrumbDescription: "Navegação do breadcrumb", + tour_tabNavigationDescription: "Navegação de páginas", + tour_menuSearchDescription: "Pesquisa no menu", + tour_fullscreenDescription: "Comutação de Ecrã Completo", + tour_themeSwitchDescription: "Comutador do tema", + tour_languageSwitchTitle: "Internacionalização", + tour_languageSwitchDescription: "Mudança de idioma", + tour_notificationDescription: "Notificações de mensagens", + tour_userSettingsDescription: "Configuração do utilizador", + tour_customSettingsTitle: "Configuração Personalizada", + tour_customSettingsDescription: "Configuração do sistema", }; export default pt; diff --git a/src/i18n/package/rom.ts b/src/i18n/package/rom.ts index 80bd69a..c08e5af 100644 --- a/src/i18n/package/rom.ts +++ b/src/i18n/package/rom.ts @@ -247,5 +247,26 @@ const rom = { Selecting_a_Character: "Selectarea unui caracter", Get_Success: "Obține succes", error_occurs: "Eroare apare", + tour_step: "Pasul {curentStep}", + tour_start: "Pornește", + tour_complete: "Complet", + tour_nextStep: "Pasul următor ({currentStep} / {totalSteps})", + tour_prev: "Anterior", + tour_skip: "Sari", + tour_welcomeTitle: "Bun venit la Kilyicms", + tour_welcomeDescription: "Faceți clic pentru a continua introducerea", + tour_menuDescription: "Meniul barei laterale stânga", + tour_toggleButtonDescription: "Butonul Extindere/Reducere", + tour_breadcrumbDescription: "Navigare cu crumb de pâine", + tour_tabNavigationDescription: "Navigare tab", + tour_menuSearchDescription: "Căutare meniu", + tour_fullscreenDescription: "Comutare pe tot ecranul", + tour_themeSwitchDescription: "Comutator tematic", + tour_languageSwitchTitle: "Internaționalizarea", + tour_languageSwitchDescription: "Comutator de limbă", + tour_notificationDescription: "Notificări mesaje", + tour_userSettingsDescription: "Setări utilizator", + tour_customSettingsTitle: "Configurări personalizate", + tour_customSettingsDescription: "Setări sistem", }; export default rom; diff --git a/src/i18n/package/ru.ts b/src/i18n/package/ru.ts index 9805ade..e4377e3 100644 --- a/src/i18n/package/ru.ts +++ b/src/i18n/package/ru.ts @@ -247,6 +247,27 @@ const ru = { Selecting_a_Character: "Выбрать роль", Get_Success: "Получить успех", error_occurs: "Произошла ошибка", + tour_step: "Шаг {currentstep}", + tour_start: "Начинаем.", + tour_complete: "Завершено", + tour_nextStep: "Следующий шаг ({currentStep} / {totalSteps})", + tour_prev: "Предыдущий шаг", + tour_skip: "Пропустить", + tour_welcomeTitle: "Добро пожаловать в Kilyicms", + tour_welcomeDescription: "Нажмите для продолжения презентации", + tour_menuDescription: "Меню слева", + tour_toggleButtonDescription: "Развернуть кнопку складывания", + tour_breadcrumbDescription: "Хлебная навигация.", + tour_tabNavigationDescription: "Навигация по вкладкам", + tour_menuSearchDescription: "Поиск меню", + tour_fullscreenDescription: "Полноэкранное переключение", + tour_themeSwitchDescription: "Переключить тему", + tour_languageSwitchTitle: "Интернационализация", + tour_languageSwitchDescription: "Многоязычное переключение", + tour_notificationDescription: "Уведомление", + tour_userSettingsDescription: "Индивидуальные настройки", + tour_customSettingsTitle: "Настройка", + tour_customSettingsDescription: "Настройки системы", }; export default ru; diff --git a/src/i18n/package/spa.ts b/src/i18n/package/spa.ts index 37ade46..a496c02 100644 --- a/src/i18n/package/spa.ts +++ b/src/i18n/package/spa.ts @@ -251,5 +251,26 @@ const spa = { Selecting_a_Character: "Selección de personajes", Get_Success: "Tener éxito", error_occurs: "Se produce un error", + tour_step: "Paso ('currentstep')", + tour_start: "Punto de partida", + tour_complete: "Completado", + tour_nextStep: "Siguiente paso (@ currentstep! / (@ totalsteps!)", + tour_prev: "En la página anterior", + tour_skip: "Saltar", + tour_welcomeTitle: "Bienvenidos a kilycms", + tour_welcomeDescription: "Haga clic para continuar la presentación", + tour_menuDescription: "Menú de la barra lateral izquierda", + tour_toggleButtonDescription: "Botón desplegable / plegable", + tour_breadcrumbDescription: "Navegación de migas de pan", + tour_tabNavigationDescription: "Navegación de pestañas", + tour_menuSearchDescription: "Búsqueda de menú", + tour_fullscreenDescription: "Cambio de pantalla completa", + tour_themeSwitchDescription: "Cambio de tema", + tour_languageSwitchTitle: "Internacionalización", + tour_languageSwitchDescription: "Cambio de lenguaje", + tour_notificationDescription: "Aviso de mensaje", + tour_userSettingsDescription: "Configuración del usuario", + tour_customSettingsTitle: "Configuración personalizada", + tour_customSettingsDescription: "Configuración del sistema", }; export default spa; diff --git a/src/i18n/package/swe.ts b/src/i18n/package/swe.ts index dd7a580..b3632ba 100644 --- a/src/i18n/package/swe.ts +++ b/src/i18n/package/swe.ts @@ -246,5 +246,26 @@ const swe = { Selecting_a_Character: "Välja ett tecken", Get_Success: "Få framgång", error_occurs: "Fel uppstår", + tour_step: "Steg {currentStep}", + tour_start: "Starta", + tour_complete: "Komplett", + tour_nextStep: "Nästa steg ({currentStep} / {totalSteps})", + tour_prev: "Föregående", + tour_skip: "Hoppa över", + tour_welcomeTitle: "Välkommen till Kilyicms", + tour_welcomeDescription: "Klicka för att fortsätta introduktionen", + tour_menuDescription: "Meny i vänstra sidoraden", + tour_toggleButtonDescription: "Knapp Expandera/Minska", + tour_breadcrumbDescription: "Breadcrumb navigation", + tour_tabNavigationDescription: "Tabbnavigering", + tour_menuSearchDescription: "Menysökning", + tour_fullscreenDescription: "Fullskärmsväxling", + tour_themeSwitchDescription: "Temabyte", + tour_languageSwitchTitle: "Internationalisering", + tour_languageSwitchDescription: "Språkbyte", + tour_notificationDescription: "Meddelandemeddelanden", + tour_userSettingsDescription: "Användarinställningar", + tour_customSettingsTitle: "Anpassade inställningar", + tour_customSettingsDescription: "Systeminställningar", }; export default swe; diff --git a/src/i18n/package/zh.ts b/src/i18n/package/zh.ts index ba50a53..1b02653 100644 --- a/src/i18n/package/zh.ts +++ b/src/i18n/package/zh.ts @@ -246,6 +246,27 @@ const zh = { Get_Success: "获取成功", error_occurs: "发生错误", router_translation_process: "翻译程序", + tour_step: "第{currentStep}步", + tour_start: "开始", + tour_complete: "完成", + tour_nextStep: "下一步({currentStep} / {totalSteps})", + tour_prev: "上一步", + tour_skip: "跳过", + tour_welcomeTitle: "欢迎来到kilyicms", + tour_welcomeDescription: "点击继续开始介绍", + tour_menuDescription: "左边菜单栏", + tour_toggleButtonDescription: "展开折叠按钮", + tour_breadcrumbDescription: "面包屑导航", + tour_tabNavigationDescription: "标签页导航", + tour_menuSearchDescription: "菜单搜索", + tour_fullscreenDescription: "全屏切换", + tour_themeSwitchDescription: "主题切换", + tour_languageSwitchTitle: "国际化", + tour_languageSwitchDescription: "多语言切换", + tour_notificationDescription: "消息通知", + tour_userSettingsDescription: "个人设置", + tour_customSettingsTitle: "自定义设置", + tour_customSettingsDescription: "系统设置", }; export default zh; diff --git a/src/utils/elTourDataOptions.ts b/src/utils/elTourDataOptions.ts index fc3012e..fe9c296 100644 --- a/src/utils/elTourDataOptions.ts +++ b/src/utils/elTourDataOptions.ts @@ -1,72 +1,75 @@ +import i18n from "@/i18n"; +const { t } = i18n.global; + export const elTourDataOptions = [ { - title: "欢迎来到kilyicms", - description: "点击继续开始介绍", + title: t("tour_welcomeTitle"), + description: t("tour_welcomeDescription"), }, { target: "#el_tour_visible_1", title: "", - description: "左边菜单栏", + description: t("tour_menuDescription"), placement: "right", }, { target: "#el_tour_visible_2", title: "", - description: "展开折叠按钮", + description: t("tour_toggleButtonDescription"), placement: "bottom", }, { target: "#el_tour_visible_3", title: "", - description: "面包屑导航", + description: t("tour_breadcrumbDescription"), placement: "bottom", }, { target: "#el_tour_visible_4", title: "", - description: "标签页导航", + description: t("tour_tabNavigationDescription"), placement: "bottom", }, { target: "#el_tour_visible_5", title: "", - description: "菜单搜索", + description: t("tour_menuSearchDescription"), placement: "bottom", }, { target: "#el_tour_visible_6", title: "", - description: "全屏切换", + description: t("tour_fullscreenDescription"), placement: "bottom", }, { target: "#el_tour_visible_7", title: "", - description: "主题切换", + description: t("tour_themeSwitchDescription"), placement: "bottom", }, { target: "#el_tour_visible_8", - title: "国际化", - description: "多语言切换", + title: t("tour_languageSwitchTitle"), + description: t("tour_languageSwitchDescription"), placement: "bottom", }, { target: "#el_tour_visible_9", title: "", - description: "消息通知", + description: t("tour_notificationDescription"), placement: "bottom", }, { target: "#el_tour_visible_10", title: "", - description: "个人设置", + description: t("tour_userSettingsDescription"), placement: "bottom", }, { target: "#el_tour_visible_11", - title: "自定义设置", - description: "系统设置", + title: t("tour_customSettingsTitle"), + description: t("tour_customSettingsDescription"), placement: "left", }, ];