Skip to content

Commit

Permalink
feat: add multiple languages
Browse files Browse the repository at this point in the history
  • Loading branch information
ikxin committed Aug 23, 2024
1 parent 6a19fc4 commit 11da2d6
Show file tree
Hide file tree
Showing 12 changed files with 321 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<CustomHeader />
<ALayout class="grow mx-auto w-256 max-w-full gap-4">
<ALayout class="grow mx-auto max-w-full gap-4 w-6xl">
<RouterView />
</ALayout>
<CustomFooter />
Expand Down
37 changes: 36 additions & 1 deletion src/components/custom-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,52 @@ const locales: LocaleItem[] = [
value: 'zh-cn',
icon: 'i-flag:cn-4x3',
},
{
lable: '繁体中文',
value: 'zh-tw',
icon: 'i-flag:tw-4x3',
},
{
lable: 'Deutsch',
value: 'de',
icon: 'i-flag:de-4x3',
},
{
lable: 'English',
value: 'en',
icon: 'i-flag:us-4x3',
},
{
lable: 'Français',
value: 'fr',
icon: 'i-flag:fr-4x3',
},
{
lable: '日本語',
value: 'ja',
icon: 'i-flag:jp-4x3',
},
{
lable: '한국어',
value: 'ko',
icon: 'i-flag:kr-4x3',
},
{
lable: 'Nederlands',
value: 'nl',
icon: 'i-flag:nl-4x3',
},
{
lable: 'Русский',
value: 'ru',
icon: 'i-flag:ru-4x3',
},
]
</script>

<template>
<ALayoutHeader class="select-none bg-[--color-bg-2] px-2 shadow-md">
<div class="mx-auto flex w-256 max-w-full items-center justify-between">
<div class="mx-auto flex w-6xl max-w-full items-center justify-between">
<div
class="i-icons:kms-tools w-48 h-12 cursor-pointer"
@click="redirectPage('home')"
Expand Down
35 changes: 35 additions & 0 deletions src/locales/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"label": {
"author": "一纸忘忧",
"activate": "Aktivieren",
"check": "Prüfen",
"monitor": "Überwachen",
"auto": "Automatisch",
"dark": "Dunkler Modus",
"light": "Heller Modus",
"system": "System",
"software": "Software",
"edition": "Ausgabe",
"host": "Server",
"port": "Port",
"arch": "Systemarchitektur",
"x64": "64 Bit",
"x86": "32 Bit",
"license": "Lizenz",
"script": "CMD-Skript",
"copy": "Kopieren",
"copy-success": "Erfolgreich kopiert",
"download": "Herunterladen",
"protocol": "Protokoll",
"submit": "Absenden",
"rate": "Erfolgsrate",
"delay": "Verzögerung",
"total": "Gesamtanfragen",
"success-total": "Erfolgreiche",
"fail-total": "Fehler",
"updated-at": "Aktualisiert am"
},
"title": {
"kms-check": "KMS-Server-Prüfung"
}
}
57 changes: 22 additions & 35 deletions src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,33 @@
{
"label": {
"author": "一纸忘忧",
"activate": "Activate",
"check": "Check",
"monitor": "Monitor",
"auto-theme": "System",
"light-theme": "Light",
"dark-theme": "Dark",
"zh-cn": "Simplified Chinese",
"zh-tw": "Traditional Chinese",
"en": "English",
"operating-system": "Operating System",
"auto": "Auto",
"dark": "Dark Mode",
"light": "Light Mode",
"system": "System",
"software": "Software",
"edition": "Edition",
"cpuarch": "CPU Arch",
"license": "License Key",
"product": "Product",
"service": "KMS Server",
"version": "Version",
"x64": "x64",
"x86": "x86",
"domain": "Domain",
"host": "Server",
"port": "Port",
"protocol": "Protocol"
},
"name": {
"author": "ikxin"
},
"placeholder": {
"domain": "Please input domain",
"port": "Please input port",
"protocol": "Please select protocol",
"software": "Please select software",
"edition": "Please select edition",
"product": "Please select product",
"service": "Please select kms server",
"version": "Please select version"
},
"button": {
"copy-script": "Copy Script",
"generate-script": "Generate Script",
"download-script": "Download Script",
"submit": "Submit"
"arch": "System Architecture",
"x64": "64 Bit",
"x86": "32 Bit",
"license": "License",
"script": "CMD Script",
"copy": "Copy",
"copy-success": "Copy Successful",
"download": "Download",
"protocol": "Protocol",
"submit": "Submit",
"rate": "Success Rate",
"delay": "Average Delay",
"total": "Total Requests",
"success-total": "Successes",
"fail-total": "Failures",
"updated-at": "Updated At"
},
"title": {
"kms-check": "KMS Server Check"
Expand Down
35 changes: 35 additions & 0 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"label": {
"author": "一纸忘忧",
"activate": "Activer",
"check": "Vérifier",
"monitor": "Surveiller",
"auto": "Automatique",
"dark": "Mode Sombre",
"light": "Mode Clair",
"system": "Système",
"software": "Logiciel",
"edition": "Édition",
"host": "Serveur",
"port": "Port",
"arch": "Architecture du Système",
"x64": "64 Bits",
"x86": "32 Bits",
"license": "Licence",
"script": "Script CMD",
"copy": "Copier",
"copy-success": "Copie Réussie",
"download": "Télécharger",
"protocol": "Protocole",
"submit": "Soumettre",
"rate": "Taux de Réussite",
"delay": "Délai Moyen",
"total": "Total des Requêtes",
"success-total": "Succès",
"fail-total": "Échecs",
"updated-at": "Mis à Jour"
},
"title": {
"kms-check": "Vérification du Serveur KMS"
}
}
35 changes: 35 additions & 0 deletions src/locales/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"label": {
"author": "一纸忘忧",
"activate": "有効化",
"check": "確認",
"monitor": "監視",
"auto": "自動",
"dark": "ダークモード",
"light": "ライトモード",
"system": "システム",
"software": "ソフトウェア",
"edition": "エディション",
"host": "サーバー",
"port": "ポート",
"arch": "システムアーキテクチャ",
"x64": "64 ビット",
"x86": "32 ビット",
"license": "ライセンス",
"script": "CMD スクリプト",
"copy": "コピー",
"copy-success": "コピー成功",
"download": "ダウンロード",
"protocol": "プロトコル",
"submit": "送信",
"rate": "成功率",
"delay": "平均遅延",
"total": "総リクエスト",
"success-total": "成功数",
"fail-total": "失敗数",
"updated-at": "更新日時"
},
"title": {
"kms-check": "KMS サーバーチェック"
}
}
35 changes: 35 additions & 0 deletions src/locales/ko.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"label": {
"author": "一纸忘忧",
"activate": "활성화",
"check": "확인",
"monitor": "모니터링",
"auto": "자동",
"dark": "다크 모드",
"light": "라이트 모드",
"system": "시스템",
"software": "소프트웨어",
"edition": "에디션",
"host": "서버",
"port": "포트",
"arch": "시스템 아키텍처",
"x64": "64비트",
"x86": "32비트",
"license": "라이센스",
"script": "CMD 스크립트",
"copy": "복사",
"copy-success": "복사 성공",
"download": "다운로드",
"protocol": "프로토콜",
"submit": "제출",
"rate": "성공률",
"delay": "평균 지연",
"total": "총 요청",
"success-total": "성공 횟수",
"fail-total": "실패 횟수",
"updated-at": "업데이트 시각"
},
"title": {
"kms-check": "KMS 서버 체크"
}
}
35 changes: 35 additions & 0 deletions src/locales/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"label": {
"author": "一纸忘忧",
"activate": "Activeren",
"check": "Controleren",
"monitor": "Monitoren",
"auto": "Automatisch",
"dark": "Donkere Modus",
"light": "Lichte Modus",
"system": "Systeem",
"software": "Software",
"edition": "Editie",
"host": "Server",
"port": "Poort",
"arch": "Systeemarchitectuur",
"x64": "64 Bit",
"x86": "32 Bit",
"license": "Licentie",
"script": "CMD Script",
"copy": "Kopiëren",
"copy-success": "Succesvol Gekopieerd",
"download": "Downloaden",
"protocol": "Protocol",
"submit": "Verzenden",
"rate": "Succespercentage",
"delay": "Gemiddelde Vertraging",
"total": "Totaal Aantal Verzoeken",
"success-total": "Geslaagde Verzoeken",
"fail-total": "Mislukte Verzoeken",
"updated-at": "Bijgewerkt op"
},
"title": {
"kms-check": "KMS Servercontrole"
}
}
35 changes: 35 additions & 0 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"label": {
"author": "一纸忘忧",
"activate": "Активировать",
"check": "Проверить",
"monitor": "Мониторинг",
"auto": "Автоматически",
"dark": "Темный режим",
"light": "Светлый режим",
"system": "Система",
"software": "Программное обеспечение",
"edition": "Редакция",
"host": "Сервер",
"port": "Порт",
"arch": "Архитектура системы",
"x64": "64 бита",
"x86": "32 бита",
"license": "Лицензия",
"script": "CMD скрипт",
"copy": "Копировать",
"copy-success": "Копирование успешно",
"download": "Загрузить",
"protocol": "Протокол",
"submit": "Отправить",
"rate": "Показатель успеха",
"delay": "Средняя задержка",
"total": "Всего запросов",
"success-total": "Успешный запрос",
"fail-total": "Ошибка запрос",
"updated-at": "Обновлено"
},
"title": {
"kms-check": "Проверка сервера KMS"
}
}
35 changes: 35 additions & 0 deletions src/locales/zh-tw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"label": {
"author": "一纸忘憂",
"activate": "啟動",
"check": "檢查",
"monitor": "監控",
"auto": "自動",
"dark": "深色模式",
"light": "淺色模式",
"system": "系統",
"software": "軟體",
"edition": "版本",
"host": "伺服器",
"port": "端口",
"arch": "系統架構",
"x64": "64 位元",
"x86": "32 位元",
"license": "許可證",
"script": "CMD 腳本",
"copy": "複製",
"copy-success": "複製成功",
"download": "下載",
"protocol": "請求協議",
"submit": "提交",
"rate": "成功率",
"delay": "平均延遲",
"total": "總請求數",
"success-total": "成功數",
"fail-total": "失敗數",
"updated-at": "更新時間"
},
"title": {
"kms-check": "KMS 伺服器檢測"
}
}
Loading

0 comments on commit 11da2d6

Please sign in to comment.