fix(frontend): 存在しない翻訳を修正 (#16604)

This commit is contained in:
かっこかり 2025-10-06 10:06:20 +09:00 committed by GitHub
parent 7cd55c31da
commit 7fcbf57a9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 25 additions and 10 deletions

12
locales/index.d.ts vendored
View File

@ -1354,6 +1354,10 @@ export interface Locale extends ILocale {
* *
*/ */
"selectFolder": string; "selectFolder": string;
/**
*
*/
"unselectFolder": string;
/** /**
* *
*/ */
@ -1402,6 +1406,10 @@ export interface Locale extends ILocale {
* *
*/ */
"emptyFolder": string; "emptyFolder": string;
/**
*
*/
"dropHereToUpload": string;
/** /**
* *
*/ */
@ -9460,6 +9468,10 @@ export interface Locale extends ILocale {
* URLに遷移します * URLに遷移します
*/ */
"byClickingYouWillBeRedirectedToThisUrl": string; "byClickingYouWillBeRedirectedToThisUrl": string;
/**
*
*/
"alreadyAuthorized": string;
}; };
"_antennaSources": { "_antennaSources": {
/** /**

View File

@ -334,6 +334,7 @@ fileName: "ファイル名"
selectFile: "ファイルを選択" selectFile: "ファイルを選択"
selectFiles: "ファイルを選択" selectFiles: "ファイルを選択"
selectFolder: "フォルダーを選択" selectFolder: "フォルダーを選択"
unselectFolder: "フォルダーの選択を解除"
selectFolders: "フォルダーを選択" selectFolders: "フォルダーを選択"
fileNotSelected: "ファイルが選択されていません" fileNotSelected: "ファイルが選択されていません"
renameFile: "ファイル名を変更" renameFile: "ファイル名を変更"
@ -346,6 +347,7 @@ addFile: "ファイルを追加"
showFile: "ファイルを表示" showFile: "ファイルを表示"
emptyDrive: "ドライブは空です" emptyDrive: "ドライブは空です"
emptyFolder: "フォルダーは空です" emptyFolder: "フォルダーは空です"
dropHereToUpload: "ここにファイルをドロップしてアップロード"
unableToDelete: "削除できません" unableToDelete: "削除できません"
inputNewFileName: "新しいファイル名を入力してください" inputNewFileName: "新しいファイル名を入力してください"
inputNewDescription: "新しいキャプションを入力してください" inputNewDescription: "新しいキャプションを入力してください"
@ -2484,6 +2486,7 @@ _auth:
scopeUser: "以下のユーザーとして操作しています" scopeUser: "以下のユーザーとして操作しています"
pleaseLogin: "アプリケーションにアクセス許可を与えるには、ログインが必要です。" pleaseLogin: "アプリケーションにアクセス許可を与えるには、ログインが必要です。"
byClickingYouWillBeRedirectedToThisUrl: "アクセスを許可すると、自動で以下のURLに遷移します" byClickingYouWillBeRedirectedToThisUrl: "アクセスを許可すると、自動で以下のURLに遷移します"
alreadyAuthorized: "このアプリケーションは既にアクセスが許可されています。"
_antennaSources: _antennaSources:
all: "全てのノート" all: "全てのノート"

View File

@ -35,18 +35,18 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="select === 'folder'"> <div v-if="select === 'folder'">
<template v-if="folder == null"> <template v-if="folder == null">
<MkButton v-if="!isRootSelected" @click="isRootSelected = true"> <MkButton v-if="!isRootSelected" @click="isRootSelected = true">
<i class="ti ti-square"></i> {{ i18n.ts.selectThisFolder }} <i class="ti ti-square"></i> {{ i18n.ts.selectFolder }}
</MkButton> </MkButton>
<MkButton v-else @click="isRootSelected = false"> <MkButton v-else @click="isRootSelected = false">
<i class="ti ti-checkbox"></i> {{ i18n.ts.unselectThisFolder }} <i class="ti ti-checkbox"></i> {{ i18n.ts.unselectFolder }}
</MkButton> </MkButton>
</template> </template>
<template v-else> <template v-else>
<MkButton v-if="!selectedFolders.some(f => f.id === folder!.id)" @click="selectedFolders.push(folder)"> <MkButton v-if="!selectedFolders.some(f => f.id === folder!.id)" @click="selectedFolders.push(folder)">
<i class="ti ti-square"></i> {{ i18n.ts.selectThisFolder }} <i class="ti ti-square"></i> {{ i18n.ts.selectFolder }}
</MkButton> </MkButton>
<MkButton v-else @click="selectedFolders = selectedFolders.filter(f => f.id !== folder!.id)"> <MkButton v-else @click="selectedFolders = selectedFolders.filter(f => f.id !== folder!.id)">
<i class="ti ti-checkbox"></i> {{ i18n.ts.unselectThisFolder }} <i class="ti ti-checkbox"></i> {{ i18n.ts.unselectFolder }}
</MkButton> </MkButton>
</template> </template>
</div> </div>
@ -112,7 +112,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkButton v-show="filesPaginator.canFetchOlder.value" :class="$style.loadMore" primary rounded @click="filesPaginator.fetchOlder()">{{ i18n.ts.loadMore }}</MkButton> <MkButton v-show="filesPaginator.canFetchOlder.value" :class="$style.loadMore" primary rounded @click="filesPaginator.fetchOlder()">{{ i18n.ts.loadMore }}</MkButton>
<div v-if="filesPaginator.items.value.length == 0 && foldersPaginator.items.value.length == 0 && !fetching" :class="$style.empty"> <div v-if="filesPaginator.items.value.length == 0 && foldersPaginator.items.value.length == 0 && !fetching" :class="$style.empty">
<div v-if="draghover">{{ i18n.ts['empty-draghover'] }}</div> <div v-if="draghover">{{ i18n.ts.dropHereToUpload }}</div>
<div v-if="!draghover && folder == null"><strong>{{ i18n.ts.emptyDrive }}</strong></div> <div v-if="!draghover && folder == null"><strong>{{ i18n.ts.emptyDrive }}</strong></div>
<div v-if="!draghover && folder != null">{{ i18n.ts.emptyFolder }}</div> <div v-if="!draghover && folder != null">{{ i18n.ts.emptyFolder }}</div>
</div> </div>

View File

@ -33,7 +33,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
<MkKeyValue> <MkKeyValue>
<template #key>{{ i18n.ts.id }}</template> <template #key>{{ i18n.ts.name }}</template>
<template #value>{{ name }}</template> <template #value>{{ name }}</template>
</MkKeyValue> </MkKeyValue>
<MkKeyValue> <MkKeyValue>

View File

@ -151,7 +151,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
<div v-else-if="tab === 'announcements'" class="_gaps"> <div v-else-if="tab === 'announcements'" class="_gaps">
<MkButton primary rounded @click="createAnnouncement"><i class="ti ti-plus"></i> {{ i18n.ts.new }}</MkButton> <MkButton primary rounded @click="createAnnouncement"><i class="ti ti-plus"></i> {{ i18n.ts.createNew }}</MkButton>
<MkSelect v-model="announcementsStatus" :items="announcementsStatusDef"> <MkSelect v-model="announcementsStatus" :items="announcementsStatusDef">
<template #label>{{ i18n.ts.filter }}</template> <template #label>{{ i18n.ts.filter }}</template>

View File

@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<h1>{{ i18n.ts._auth.denied }}</h1> <h1>{{ i18n.ts._auth.denied }}</h1>
</div> </div>
<div v-if="state == 'accepted' && session"> <div v-if="state == 'accepted' && session">
<h1>{{ session.app.isAuthorized ? i18n.ts['already-authorized'] : i18n.ts.allowed }}</h1> <h1>{{ session.app.isAuthorized ? i18n.ts._auth.alreadyAuthorized : i18n.ts._auth.accepted }}</h1>
<p v-if="session.app.callbackUrl"> <p v-if="session.app.callbackUrl">
{{ i18n.ts._auth.callback }} {{ i18n.ts._auth.callback }}
<MkEllipsis/> <MkEllipsis/>

View File

@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkButton primary @click="createKey">{{ i18n.ts._registry.createKey }}</MkButton> <MkButton primary @click="createKey">{{ i18n.ts._registry.createKey }}</MkButton>
<FormSection v-if="keys"> <FormSection v-if="keys">
<template #label>{{ i18n.ts.keys }}</template> <template #label>{{ i18n.ts._registry.keys }}</template>
<div class="_gaps_s"> <div class="_gaps_s">
<FormLink v-for="key in keys" :to="`/registry/value/${props.domain}/${scope.join('/')}/${key[0]}`" class="_monospace">{{ key[0] }}<template #suffix>{{ key[1].toUpperCase() }}</template></FormLink> <FormLink v-for="key in keys" :to="`/registry/value/${props.domain}/${scope.join('/')}/${key[0]}`" class="_monospace">{{ key[0] }}<template #suffix>{{ key[1].toUpperCase() }}</template></FormLink>
</div> </div>

View File

@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<p v-if="widgetProps.folderId == null"> <p v-if="widgetProps.folderId == null">
{{ i18n.ts.folder }} {{ i18n.ts.folder }}
</p> </p>
<p v-if="widgetProps.folderId != null && images.length === 0 && !fetching">{{ i18n.ts['no-image'] }}</p> <p v-if="widgetProps.folderId != null && images.length === 0 && !fetching">{{ i18n.ts.nothing }}</p>
<div ref="slideA" class="slide a"></div> <div ref="slideA" class="slide a"></div>
<div ref="slideB" class="slide b"></div> <div ref="slideB" class="slide b"></div>
</div> </div>