From 21c7b5ae44882cbf2636f42d56c27b5933f434ca Mon Sep 17 00:00:00 2001 From: memorydream <34763046+memorydream@users.noreply.github.com> Date: Sat, 30 Apr 2022 14:49:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20UNM=20=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20l10n=20(#1578)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: UNM 设置页面 l10n * update translate * update --- src/locale/lang/en.js | 28 ++++++++++++++++++++ src/locale/lang/tr.js | 28 ++++++++++++++++++++ src/locale/lang/zh-CN.js | 27 ++++++++++++++++++++ src/locale/lang/zh-TW.js | 27 ++++++++++++++++++++ src/views/settings.vue | 55 +++++++++++++++++++++++----------------- 5 files changed, 142 insertions(+), 23 deletions(-) diff --git a/src/locale/lang/en.js b/src/locale/lang/en.js index 350d9b2..7c39853 100644 --- a/src/locale/lang/en.js +++ b/src/locale/lang/en.js @@ -178,6 +178,34 @@ export default { exit: 'Exit', minimizeToTray: 'Minimize to tray', }, + unm: { + enable: 'Enable', + audioSource: { + title: 'Audio Sources', + }, + enableFlac: { + title: 'Enable FLAC Sources', + desc: 'To take effect, it may be required to clear the cache after enabling this function.', + }, + searchMode: { + title: 'Audio Search Mode', + fast: 'Speed Priority', + order: 'Order Priority', + }, + cookie: { + joox: 'Cookie for Joox use', + qq: 'Cookie for QQ use', + desc1: 'Click here for the configuration instruction. ', + desc2: 'Leave empty to pick up the default value', + }, + ytdl: 'The youtube-dl Executable File for YtDl', + proxy: { + title: 'Proxy Server for UNM', + desc1: + 'The proxy server to use for requesting services such as YouTube', + desc2: 'Leave empty to pick up the default value', + }, + }, }, contextMenu: { play: 'Play', diff --git a/src/locale/lang/tr.js b/src/locale/lang/tr.js index 0a01387..3f29d85 100644 --- a/src/locale/lang/tr.js +++ b/src/locale/lang/tr.js @@ -172,6 +172,34 @@ export default { exit: 'Exit', minimizeToTray: 'Küçült', }, + unm: { + enable: 'Enable', + audioSource: { + title: 'Audio Sources', + }, + enableFlac: { + title: 'Enable FLAC Sources', + desc: 'To take effect, it may be required to clear the cache after enabling this function.', + }, + searchMode: { + title: 'Audio Search Mode', + fast: 'Speed Priority', + order: 'Order Priority', + }, + cookie: { + joox: 'Cookie for Joox use', + qq: 'Cookie for QQ use', + desc1: 'Click here for the configuration instruction. ', + desc2: 'Leave empty to pick up the default value', + }, + ytdl: 'The youtube-dl Executable File for YtDl', + proxy: { + title: 'Proxy Server for UNM', + desc1: + 'The proxy server to use for requesting services such as YouTube', + desc2: 'Leave empty to pick up the default value', + }, + }, }, contextMenu: { play: 'Oynat', diff --git a/src/locale/lang/zh-CN.js b/src/locale/lang/zh-CN.js index 47f40f6..c17df89 100644 --- a/src/locale/lang/zh-CN.js +++ b/src/locale/lang/zh-CN.js @@ -179,6 +179,33 @@ export default { exit: '退出', minimizeToTray: '最小化到托盘', }, + unm: { + enable: '启用', + audioSource: { + title: '备选音源', + }, + enableFlac: { + title: '启用 FLAC', + desc: '启用后需要清除歌曲缓存才能生效', + }, + searchMode: { + title: '音源搜索模式', + fast: '速度优先', + order: '顺序优先', + }, + cookie: { + joox: 'Joox 引擎的 Cookie', + qq: 'QQ 引擎的 Cookie', + desc1: '设置说明请参见此处', + desc2: ',留空则不进行相关设置', + }, + ytdl: 'YtDl 引擎要使用的 youtube-dl 可执行文件', + proxy: { + title: '用于 UNM 的代理服务器', + desc1: '请求如 YouTube 音源服务时要使用的代理服务器', + desc2: '留空则不进行相关设置', + }, + }, }, contextMenu: { play: '播放', diff --git a/src/locale/lang/zh-TW.js b/src/locale/lang/zh-TW.js index 47da525..22ba73a 100644 --- a/src/locale/lang/zh-TW.js +++ b/src/locale/lang/zh-TW.js @@ -176,6 +176,33 @@ export default { exit: '退出', minimizeToTray: '最小化到工作列角落', }, + unm: { + enable: '啟用', + audioSource: { + title: '備選音源', + }, + enableFlac: { + title: '啟用 FLAC', + desc: '啟用後需要清除歌曲快取才能生效', + }, + searchMode: { + title: '音源搜尋模式', + fast: '速度優先', + order: '順序優先', + }, + cookie: { + joox: 'Joox 引擎的 Cookie', + qq: 'QQ 引擎的 Cookie', + desc1: '設定說明請參見此處', + desc2: ',留空則不進行相關設定', + }, + ytdl: 'YtDl 引擎要使用的 youtube-dl 執行檔', + proxy: { + title: '用於 UNM 的 Proxy 伺服器', + desc1: '請求如 YouTube 音源服務時要使用的 Proxy 伺服器', + desc2: '留空則不進行相關設定', + }, + }, }, contextMenu: { play: '播放', diff --git a/src/views/settings.vue b/src/views/settings.vue index f96c847..749202a 100644 --- a/src/views/settings.vue +++ b/src/views/settings.vue @@ -223,11 +223,11 @@
-

UnblockNeteaseMusic 设置

+

UnblockNeteaseMusic

激活 + >{{ $t('settings.unm.enable') }}
-
备选音源
+
+ {{ $t('settings.unm.audioSource.title') }} +
音源的具体代号
-
激活无损音质 (FLAC)
-
设置后需要清掉快取才能生效。
+
{{ $t('settings.unm.enableFlac.title') }}
+
+ {{ $t('settings.unm.enableFlac.desc') }} +
@@ -291,26 +295,30 @@
-
音源搜索模式
+
{{ $t('settings.unm.searchMode.title') }}
-
Joox 引擎的 Cookie
+
{{ $t('settings.unm.cookie.joox') }}
设置说明请参见此处。 - 留空则不进行相关设置。 + >{{ $t('settings.unm.cookie.desc1') }} + + {{ $t('settings.unm.cookie.desc2') }}
@@ -324,14 +332,14 @@
-
QQ 引擎的 Cookie
+
{{ $t('settings.unm.cookie.qq') }}
设置说明请参见此处。 - 留空则不进行相关设置。 + >{{ $t('settings.unm.cookie.desc1') }} + + {{ $t('settings.unm.cookie.desc2') }}
@@ -345,13 +353,14 @@
-
YtDl 引擎要使用的 youtube-dl 运行档
+
{{ $t('settings.unm.ytdl') }}
设置说明请参见此处。留空则不进行相关设置。 + >{{ $t('settings.unm.cookie.desc1') }} + + {{ $t('settings.unm.cookie.desc2') }}
@@ -365,17 +374,17 @@
-
用于 UNM 的 Proxy 服务器
+
{{ $t('settings.unm.proxy.title') }}
- 请求如 YouTube 音源服务时要使用的 Proxy 服务器。
- 留空则不进行相关设置。 + {{ $t('settings.unm.proxy.desc1') }}
+ {{ $t('settings.unm.proxy.desc2') }}