mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 05:02:06 +00:00
fix(api-server): fix i18n
This commit is contained in:
@ -32,13 +32,13 @@ export const onMenu = async ({
|
|||||||
...promptOptions(),
|
...promptOptions(),
|
||||||
},
|
},
|
||||||
window,
|
window,
|
||||||
) ?? defaultAPIServerConfig.hostname;
|
) ?? (config.hostname ?? defaultAPIServerConfig.hostname);
|
||||||
|
|
||||||
setConfig({ ...config, hostname: newHostname });
|
setConfig({ ...config, hostname: newHostname });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('plugins.api-server.menu.port'),
|
label: t('plugins.api-server.menu.port.label'),
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
async click() {
|
async click() {
|
||||||
const config = await getConfig();
|
const config = await getConfig();
|
||||||
@ -54,17 +54,17 @@ export const onMenu = async ({
|
|||||||
...promptOptions(),
|
...promptOptions(),
|
||||||
},
|
},
|
||||||
window,
|
window,
|
||||||
) ?? defaultAPIServerConfig.port;
|
) ?? (config.port ?? defaultAPIServerConfig.port);
|
||||||
|
|
||||||
setConfig({ ...config, port: newPort });
|
setConfig({ ...config, port: newPort });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('plugins.api-server.menu.auth-strategy'),
|
label: t('plugins.api-server.menu.auth-strategy.label'),
|
||||||
type: 'submenu',
|
type: 'submenu',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: t('plugins.api-server.menu.auth-strategy.submenu.auth-at-first'),
|
label: t('plugins.api-server.menu.auth-strategy.submenu.auth-at-first.label'),
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
checked: config.authStrategy === 'AUTH_AT_FIRST',
|
checked: config.authStrategy === 'AUTH_AT_FIRST',
|
||||||
click() {
|
click() {
|
||||||
@ -72,7 +72,7 @@ export const onMenu = async ({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('plugins.api-server.menu.auth-strategy.submenu.none'),
|
label: t('plugins.api-server.menu.auth-strategy.submenu.none.label'),
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
checked: config.authStrategy === 'NONE',
|
checked: config.authStrategy === 'NONE',
|
||||||
click() {
|
click() {
|
||||||
|
|||||||
Reference in New Issue
Block a user