From 18515111ffe2949540633340e6c0be9c51124bd1 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 11 Aug 2024 08:29:02 +0300 Subject: [PATCH] client: Address self-review changes --- src/public/app/mobile.js | 3 +++ src/routes/api/options.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/app/mobile.js b/src/public/app/mobile.js index 484974ea3..3b03c3322 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 d5f89436f..ed8f3ff19 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",