Skip to content

Build your personal knowledge base with Trilium Notes

client: Address self-review changes

Elian Doran18515111ffe2
diff --git a/src/public/app/mobile.js b/src/public/app/mobile.js
index 484974ea38..3b03c33226 100644
--- a/src/public/app/mobile.js
+++ b/src/public/app/mobile.js
@@ -4,6 +4,9 @@ import glob from "./services/glob.js";
glob.setupGlobs()
appContext.earlyInit();
+
+// A dynamic import is required for layouts since they initialize components which require translations.
const MobileLayout = (await import("./layouts/mobile_layout.js")).default;
+
appContext.setLayout(new MobileLayout());
appContext.start();
diff --git a/src/routes/api/options.ts b/src/routes/api/options.ts
index d5f89436fc..ed8f3ff19f 100644
--- a/src/routes/api/options.ts
+++ b/src/routes/api/options.ts
@@ -131,7 +131,7 @@ function getUserThemes() {
}
function getSupportedLocales() {
- // TODO: Currently hardcoded, needs to read the lits of available languages.
+ // TODO: Currently hardcoded, needs to read the list of available languages.
return [
{
"id": "en",