fix(i18n): use dash (-) instead of under-bar (_)

This commit is contained in:
JellyBrick
2024-01-16 17:36:48 +09:00
parent 39d2f3ec80
commit 10f41bddad
3 changed files with 11 additions and 11 deletions

View File

@ -573,7 +573,7 @@
"description": "Add scrobbling support (etc. last.fm, Listenbrainz)", "description": "Add scrobbling support (etc. last.fm, Listenbrainz)",
"menu": { "menu": {
"lastfm": { "lastfm": {
"api_settings": "Last.fm API Settings" "api-settings": "Last.fm API Settings"
}, },
"listenbrainz": { "listenbrainz": {
"token": "Enter ListenBrainz user token" "token": "Enter ListenBrainz user token"
@ -582,8 +582,8 @@
"name": "Scrobbler", "name": "Scrobbler",
"prompt": { "prompt": {
"lastfm": { "lastfm": {
"api_key": "Last.fm API key", "api-key": "Last.fm API key",
"api_secret": "Last.fm API secret" "api-secret": "Last.fm API secret"
}, },
"listenbrainz": { "listenbrainz": {
"token": { "token": {

View File

@ -573,7 +573,7 @@
"description": "스크로블링 지원을 추가합니다 (예: last.fm, Listenbrainz)", "description": "스크로블링 지원을 추가합니다 (예: last.fm, Listenbrainz)",
"menu": { "menu": {
"lastfm": { "lastfm": {
"api_settings": "Last.fm API 설정" "api-settings": "Last.fm API 설정"
}, },
"listenbrainz": { "listenbrainz": {
"token": "ListenBrainz 유저 토큰 입력" "token": "ListenBrainz 유저 토큰 입력"
@ -582,8 +582,8 @@
"name": "스크로블러", "name": "스크로블러",
"prompt": { "prompt": {
"lastfm": { "lastfm": {
"api_key": "Last.fm API 키", "api-key": "Last.fm API 키",
"api_secret": "Last.fm API 비밀 키" "api-secret": "Last.fm API 비밀 키"
}, },
"listenbrainz": { "listenbrainz": {
"token": { "token": {

View File

@ -14,19 +14,19 @@ import type { MenuTemplate } from '@/menu';
async function promptLastFmOptions(options: ScrobblerPluginConfig, setConfig: SetConfType, window: BrowserWindow) { async function promptLastFmOptions(options: ScrobblerPluginConfig, setConfig: SetConfType, window: BrowserWindow) {
const output = await prompt( const output = await prompt(
{ {
title: t('plugins.scrobbler.menu.lastfm.api_settings'), title: t('plugins.scrobbler.menu.lastfm.api-settings'),
label: t('plugins.scrobbler.menu.lastfm.api_settings'), label: t('plugins.scrobbler.menu.lastfm.api-settings'),
type: 'multiInput', type: 'multiInput',
multiInputOptions: [ multiInputOptions: [
{ {
label: t('plugins.scrobbler.prompt.lastfm.api_key'), label: t('plugins.scrobbler.prompt.lastfm.api-key'),
value: options.scrobblers.lastfm?.api_key, value: options.scrobblers.lastfm?.api_key,
inputAttrs: { inputAttrs: {
type: 'text' type: 'text'
} }
}, },
{ {
label: t('plugins.scrobbler.prompt.lastfm.api_secret'), label: t('plugins.scrobbler.prompt.lastfm.api-secret'),
value: options.scrobblers.lastfm?.secret, value: options.scrobblers.lastfm?.secret,
inputAttrs: { inputAttrs: {
type: 'text' type: 'text'
@ -93,7 +93,7 @@ export const onMenu = async ({
}, },
}, },
{ {
label: t('plugins.scrobbler.menu.lastfm.api_settings'), label: t('plugins.scrobbler.menu.lastfm.api-settings'),
click() { click() {
promptLastFmOptions(config, setConfig, window); promptLastFmOptions(config, setConfig, window);
}, },