Skip to content

Build your personal knowledge base with Trilium Notes

chore(client/ts): fix errors in i18n

Elian Doran1548b2e3e4e2
diff --git a/src/public/app/services/i18n.ts b/src/public/app/services/i18n.ts
index 7e9be3a093..3d82c0e1da 100644
--- a/src/public/app/services/i18n.ts
+++ b/src/public/app/services/i18n.ts
@@ -4,7 +4,7 @@ import options from "./options.js";
await library_loader.requireLibrary(library_loader.I18NEXT);
export async function initLocale() {
- const locale = options.get("locale") || "en";
+ const locale = (options.get("locale") as string) || "en";
await i18next
.use(i18nextHttpBackend)