-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more langs and lang switcher
- Loading branch information
Showing
10 changed files
with
157 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<script setup> | ||
import { useLocalStorage } from '@vueuse/core' | ||
import { NConfigProvider, NDropdown, darkTheme } from 'naive-ui' | ||
import { useI18n } from 'vue-i18n' | ||
const { locale, availableLocales } = useI18n() | ||
const localStorageLocale = useLocalStorage('valoryLocale', 'en') | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<n-config-provider :theme="darkTheme"> | ||
<n-dropdown | ||
trigger="click" | ||
:options=" | ||
availableLocales.map((l) => ({ | ||
title: $t('languageName', {}, { locale: l }), | ||
key: l | ||
})) | ||
" | ||
size="medium" | ||
@select=" | ||
(l) => { | ||
locale = l | ||
localStorageLocale = l | ||
} | ||
" | ||
> | ||
<n-button circle quaternary style="padding: 5px; font-size: 25px"> | ||
<Icon :icon="`flag:${$t('flag')}-4x3`" width="18" height="18" /> | ||
</n-button> | ||
</n-dropdown> | ||
</n-config-provider> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"languageName": "Deutsch", | ||
"flag": "de", | ||
"landing": { | ||
"pretitle": "OVERLAY FÜR STREAM 2.0", | ||
"description": "Ziehen Sie die Aufmerksamkeit des Publikums mit VALORANT-Statistiken auf sich!", | ||
"features": { | ||
"first": "Passen Sie Ihr Overlay entsprechend Ihrem Stream an.", | ||
"second": "Das ist absolut kostenlos! Es wird von vielen beliebten Streaming-Programmen unterstützt, wie zum Beispiel OBS und andere.", | ||
"third": "Installieren Sie es einmal, und alles wird wie am Schnürchen laufen!" | ||
}, | ||
"buttons": { | ||
"first": "Wie funktioniert das?", | ||
"second": "Erstellen Sie Ihr Overlay" | ||
}, | ||
"footer": "Hergestellt mit" | ||
}, | ||
"editor": { | ||
"header": { | ||
"title": "Overlay mit Statistiken", | ||
"description": "Zeigen Sie Ihre Statistiken in Streaming-Programmen wie OBS Studio an." | ||
}, | ||
"riotId": { | ||
"title": "Riot ID", | ||
"description": "Riot ID ist Ihre universelle Kennung, die in allen Spielen von Riot Games verwendet wird.", | ||
"submit": "Senden", | ||
"random": "Klicken Sie, um ein Beispiel für Riot ID einzufügen." | ||
}, | ||
"customization": { | ||
"title": "Wählen Sie Optionen aus", | ||
"description": "Passen Sie das Overlay nach Ihren Vorlieben an." | ||
}, | ||
"preview": { | ||
"title": "Daten nicht gefunden" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"languageName": "Қазақша", | ||
"flag": "kz", | ||
"landing": { | ||
"pretitle": "ОВЕРЛЕЙ ДЛЯ СТРИМА 2.0", | ||
"description": "VALORANT статистикасымен аудиторияның назарын себепке жасау!", | ||
"features": { | ||
"first": "Өзіңіздің стримыңызға сәйкес оверлейіңізді кастомдайтыңыз.", | ||
"second": "Бұл толығымен тегін! OBS және басқалар т.б. көптеген танымал стриминг программаларында қолданылуына қолдау беріледі.", | ||
"third": "Бір рет орнатып, барлығы да сағат көрінетінше жұмыс істейді!" | ||
}, | ||
"buttons": { | ||
"first": "Бұл қалай жұмыс істейді?", | ||
"second": "Өзіңіздің оверлейіңізді жасау" | ||
}, | ||
"footer": "Салыстырылды" | ||
}, | ||
"editor": { | ||
"header": { | ||
"title": "Статистикалық оверлей", | ||
"description": "OBS Studio сияқты стриминг программаларында өз статистикасын көрсетіңіз." | ||
}, | ||
"riotId": { | ||
"title": "Riot ID", | ||
"description": "Riot ID - барлық Riot Games ойындарында пайдаланылатын сіздің бірліктік идентификаторыңыз.", | ||
"submit": "Жіберу", | ||
"random": "Riot ID мисалын енгізу үшін басыңыз." | ||
}, | ||
"customization": { | ||
"title": "Параметрлерді таңдау", | ||
"description": "Оларды сіздің көпшіліктеріңізге сәйкес оверлейді теңшеу." | ||
}, | ||
"preview": { | ||
"title": "Деректер табылмады" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"languageName": "Українська", | ||
"flag": "ua", | ||
"landing": { | ||
"pretitle": "ОВЕРЛЕЙ ДЛЯ СТРІМУ 2.0", | ||
"description": "Привертайте увагу аудиторії статистикою VALORANT!", | ||
"features": { | ||
"first": "Кастомізуйте свій оверлей відповідно до вашого стріму.", | ||
"second": "Це абсолютно безкоштовно! Є підтримка для багатьох популярних програм для стрімінгу. Наприклад, OBS та інші.", | ||
"third": "Встановіть один раз, і все буде працювати, як годинник!" | ||
}, | ||
"buttons": { | ||
"first": "Як це працює?", | ||
"second": "Створіть свій оверлей" | ||
}, | ||
"footer": "Зроблено з" | ||
}, | ||
"editor": { | ||
"header": { | ||
"title": "Оверлей зі статистикою", | ||
"description": "Покажіть свою статистику в програмах для стрімінгу, таких як OBS Studio." | ||
}, | ||
"riotId": { | ||
"title": "Riot ID", | ||
"description": "Riot ID – ваш універсальний ідентифікатор, який використовується в усіх іграх Riot Games.", | ||
"submit": "Відправити", | ||
"random": "Натисніть, щоб вставити приклад Riot ID." | ||
}, | ||
"customization": { | ||
"title": "Виберіть опції", | ||
"description": "Налаштовуйте оверлей відповідно до ваших уподобань." | ||
}, | ||
"preview": { | ||
"title": "Дані не знайдені" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters