1
0

make block confirm dialog localizable.

This commit is contained in:
piuvas
2024-11-28 18:47:20 -03:00
parent e0bb796aff
commit 385846d43d
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -11000,6 +11000,10 @@ export interface Locale extends ILocale {
* Show warning when opening external URLs
*/
"warnExternalUrl": string;
/**
* Confirm
*/
"confirm": string;
"_mfm": {
/**
* This is not a widespread feature, it may not display properly on most other fedi software, including other Misskey forks
@@ -104,7 +104,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
async function getConfirmed(text: string): Promise<boolean> {
const confirm = await os.confirm({
type: 'warning',
title: 'confirm',
title: i18n.ts.confirm,
text,
});
+1
View File
@@ -156,6 +156,7 @@ allowClickingNotifications: "Allow clicking on pop-up notifications"
pinnedOnly: "Pinned"
blockingYou: "Blocking you"
warnExternalUrl: "Show warning when opening external URLs"
confirm: "Confirm"
_delivery:
stop: "Suspend delivery"
resume: "Resume delivery"