add transliteration command (en <-> ru)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user