mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 16:17:20 +02:00
Update translations and add support for Traditional Chinese
This commit is contained in:
parent
816249e9a5
commit
585ec4a598
@ -44,7 +44,7 @@ export class GuideMenu {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
reloadStream: createButton({
|
reloadStream: createButton({
|
||||||
label: t('reload-stream'),
|
label: t('reload-page'),
|
||||||
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE,
|
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE,
|
||||||
onClick: e => {
|
onClick: e => {
|
||||||
confirm(t('confirm-reload-stream')) && window.location.reload();
|
confirm(t('confirm-reload-stream')) && window.location.reload();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { CE } from "@utils/html";
|
import { CE } from "@utils/html";
|
||||||
import { SUPPORTED_LANGUAGES, t, ut} from "@utils/translation";
|
import { SUPPORTED_LANGUAGES, t} from "@utils/translation";
|
||||||
import { SettingElement, SettingElementType } from "@utils/settings";
|
import { SettingElement, SettingElementType } from "@utils/settings";
|
||||||
import { UserAgent } from "@utils/user-agent";
|
import { UserAgent } from "@utils/user-agent";
|
||||||
import { StreamStat } from "@modules/stream/stream-stats";
|
import { StreamStat } from "@modules/stream/stream-stats";
|
||||||
@ -556,7 +556,7 @@ export class Preferences {
|
|||||||
},
|
},
|
||||||
|
|
||||||
[PrefKey.UI_CONTROLLER_FRIENDLY]: {
|
[PrefKey.UI_CONTROLLER_FRIENDLY]: {
|
||||||
label: ut('Controller-friendly UI'),
|
label: t('controller-friendly-ui'),
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ export const SUPPORTED_LANGUAGES = {
|
|||||||
'uk-UA': 'українська',
|
'uk-UA': 'українська',
|
||||||
'vi-VN': 'Tiếng Việt',
|
'vi-VN': 'Tiếng Việt',
|
||||||
'zh-CN': '中文(简体)',
|
'zh-CN': '中文(简体)',
|
||||||
|
'zh-TW': '中文(繁體)',
|
||||||
};
|
};
|
||||||
|
|
||||||
const Texts = {
|
const Texts = {
|
||||||
@ -69,6 +70,7 @@ const Texts = {
|
|||||||
"console-connect": "Connect",
|
"console-connect": "Connect",
|
||||||
"contrast": "Contrast",
|
"contrast": "Contrast",
|
||||||
"controller": "Controller",
|
"controller": "Controller",
|
||||||
|
"controller-friendly-ui": "Controller-friendly UI",
|
||||||
"controller-shortcuts": "Controller shortcuts",
|
"controller-shortcuts": "Controller shortcuts",
|
||||||
"controller-shortcuts-connect-note": "Connect a controller to use this feature",
|
"controller-shortcuts-connect-note": "Connect a controller to use this feature",
|
||||||
"controller-shortcuts-xbox-note": "Button to open the Guide menu",
|
"controller-shortcuts-xbox-note": "Button to open the Guide menu",
|
||||||
@ -173,12 +175,13 @@ const Texts = {
|
|||||||
(e: any) => `Натисніть ${e.key} щоб перемкнути цю функцію`,
|
(e: any) => `Натисніть ${e.key} щоб перемкнути цю функцію`,
|
||||||
(e: any) => `Nhấn ${e.key} để bật/tắt tính năng này`,
|
(e: any) => `Nhấn ${e.key} để bật/tắt tính năng này`,
|
||||||
(e: any) => `按下 ${e.key} 来切换此功能`,
|
(e: any) => `按下 ${e.key} 来切换此功能`,
|
||||||
|
(e: any) => `按下 ${e.key} 來啟用此功能`,
|
||||||
],
|
],
|
||||||
"press-to-bind": "Press a key or do a mouse click to bind...",
|
"press-to-bind": "Press a key or do a mouse click to bind...",
|
||||||
"prompt-preset-name": "Preset's name:",
|
"prompt-preset-name": "Preset's name:",
|
||||||
"reduce-animations": "Reduce UI animations",
|
"reduce-animations": "Reduce UI animations",
|
||||||
"region": "Region",
|
"region": "Region",
|
||||||
"reload-stream": "Reload stream",
|
"reload-page": "Reload page",
|
||||||
"remote-play": "Remote Play",
|
"remote-play": "Remote Play",
|
||||||
"rename": "Rename",
|
"rename": "Rename",
|
||||||
"renderer": "Renderer",
|
"renderer": "Renderer",
|
||||||
@ -269,6 +272,7 @@ const Texts = {
|
|||||||
(e: any) => `Розташування сенсорного керування від ${e.name}`,
|
(e: any) => `Розташування сенсорного керування від ${e.name}`,
|
||||||
(e: any) => `Bố cục điều khiển cảm ứng tạo bởi ${e.name}`,
|
(e: any) => `Bố cục điều khiển cảm ứng tạo bởi ${e.name}`,
|
||||||
(e: any) => `由 ${e.name} 提供的虚拟按键样式`,
|
(e: any) => `由 ${e.name} 提供的虚拟按键样式`,
|
||||||
|
(e: any) => `觸控遊玩佈局由 ${e.name} 提供`,
|
||||||
],
|
],
|
||||||
"touch-controller": "Touch controller",
|
"touch-controller": "Touch controller",
|
||||||
"transparent-background": "Transparent background",
|
"transparent-background": "Transparent background",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user