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)",
"menu": {
"lastfm": {
"api_settings": "Last.fm API Settings"
"api-settings": "Last.fm API Settings"
},
"listenbrainz": {
"token": "Enter ListenBrainz user token"
@ -582,8 +582,8 @@
"name": "Scrobbler",
"prompt": {
"lastfm": {
"api_key": "Last.fm API key",
"api_secret": "Last.fm API secret"
"api-key": "Last.fm API key",
"api-secret": "Last.fm API secret"
},
"listenbrainz": {
"token": {

View File

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

View File

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