fix(frontend): fix missing localization

This commit is contained in:
syuilo 2023-12-14 17:05:29 +09:00
parent b9318d09ee
commit f7eef546a6
3 changed files with 4 additions and 2 deletions

1
locales/index.d.ts vendored
View File

@ -1181,6 +1181,7 @@ export interface Locale {
"code": string; "code": string;
"reloadRequiredToApplySettings": string; "reloadRequiredToApplySettings": string;
"remainingN": string; "remainingN": string;
"overwriteContentConfirm": string;
"_announcement": { "_announcement": {
"forExistingUsers": string; "forExistingUsers": string;
"forExistingUsersDescription": string; "forExistingUsersDescription": string;

View File

@ -1178,6 +1178,7 @@ doReaction: "リアクションする"
code: "コード" code: "コード"
reloadRequiredToApplySettings: "設定の反映にはリロードが必要です。" reloadRequiredToApplySettings: "設定の反映にはリロードが必要です。"
remainingN: "残り: {n}" remainingN: "残り: {n}"
overwriteContentConfirm: "現在の内容に上書きされますがよろしいですか?"
_announcement: _announcement:
forExistingUsers: "既存ユーザーのみ" forExistingUsers: "既存ユーザーのみ"

View File

@ -167,7 +167,7 @@ function previewEmoji(ev: MouseEvent) {
async function copyFromPinnedEmojis() { async function copyFromPinnedEmojis() {
const { canceled } = await os.confirm({ const { canceled } = await os.confirm({
type: 'warning', type: 'warning',
text: 'a', text: i18n.ts.overwriteContentConfirm,
}); });
if (canceled) { if (canceled) {
@ -180,7 +180,7 @@ async function copyFromPinnedEmojis() {
async function copyFromPinnedEmojisForReaction() { async function copyFromPinnedEmojisForReaction() {
const { canceled } = await os.confirm({ const { canceled } = await os.confirm({
type: 'warning', type: 'warning',
text: 'a', text: i18n.ts.overwriteContentConfirm,
}); });
if (canceled) { if (canceled) {