add transliteration command (en <-> ru)

This commit is contained in:
2026-01-18 16:28:53 +03:00
parent 0e79bbb87d
commit 20749860ad
3 changed files with 121 additions and 0 deletions
+6
View File
@@ -798,4 +798,10 @@ export async function imageToBase64(filePath: string): Promise<string> {
resolve(dataUrl);
});
});
}
export function ifTrue(exp?: never): boolean {
if (!exp) return false;
return ["true", "t", "y", 1, "1"].includes(exp);
}