mirror of
https://github.com/MultiMote/niimblue
synced 2026-01-19 19:37:11 +03:00
Move language name to translation file
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"lang.name": "Deutsch",
|
||||
"browser_warning.lines.first": "Oh nein, Dein Browser unterstützt kein Bluetooth und keine serielle Schnittstelle",
|
||||
"browser_warning.lines.second": "Du kannst trotzdem Etiketten erstellen.",
|
||||
"connector.bluetooth": "Bluetooth",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"lang.name": "English",
|
||||
"browser_warning.lines.first": "Oh no, your browser does not support bluetooth and serial communications",
|
||||
"browser_warning.lines.second": "Anyway, you still can draw labels.",
|
||||
"connector.bluetooth": "Bluetooth",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"lang.name": "Italiano",
|
||||
"browser_warning.lines.first": "Oh no, il tuo browser non supporta le comunicazioni Bluetooth e seriali",
|
||||
"browser_warning.lines.second": "Comunque, puoi disegnare etichette.",
|
||||
"connector.bluetooth": "Bluetooth",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"lang.name": "Русский",
|
||||
"browser_warning.lines.first": "О нет, ваш браузер не поддерживает Bluetooth и последовательный порт",
|
||||
"browser_warning.lines.second": "В любом случае, вы можете рисовать этикетки.",
|
||||
"connector.bluetooth": "Bluetooth 123",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"lang.name": "简体中文",
|
||||
"browser_warning.lines.first": "哦豁,你的浏览器貌似不支持蓝牙和串口通讯",
|
||||
"browser_warning.lines.second": "但是你依然可以使用标签编辑功能",
|
||||
"connector.bluetooth": "蓝牙",
|
||||
|
||||
@@ -22,10 +22,9 @@ export const langPack = {
|
||||
|
||||
export type SupportedLanguage = keyof typeof langPack;
|
||||
|
||||
export const languageNames: Record<SupportedLanguage, string> = {
|
||||
de: "Deutsch",
|
||||
en: "English",
|
||||
it: "Italiano",
|
||||
ru: "Русский",
|
||||
zh_cn: "简体中文",
|
||||
};
|
||||
export const languageNames = Object.assign(
|
||||
{},
|
||||
...Object.entries(langPack).map(([k, v]) => ({
|
||||
[k]: v["lang.name"] ?? k,
|
||||
}))
|
||||
) as Record<SupportedLanguage, string>;
|
||||
|
||||
Reference in New Issue
Block a user