mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 15:13:46 +00:00
13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
import { initI18n, t } from "./i18n"
|
|
|
|
export async function installCli(): Promise<void> {
|
|
await initI18n()
|
|
|
|
try {
|
|
const path = await window.api.installCli()
|
|
window.alert(t("desktop.cli.installed.message", { path }))
|
|
} catch (e) {
|
|
window.alert(t("desktop.cli.failed.message", { error: String(e) }))
|
|
}
|
|
}
|