client: Address self-review changes

This commit is contained in:
Elian Doran 2024-08-11 08:29:02 +03:00
parent ea34a1688c
commit 18515111ff
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@ import glob from "./services/glob.js";
glob.setupGlobs() glob.setupGlobs()
appContext.earlyInit(); 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; const MobileLayout = (await import("./layouts/mobile_layout.js")).default;
appContext.setLayout(new MobileLayout()); appContext.setLayout(new MobileLayout());
appContext.start(); appContext.start();

View File

@ -131,7 +131,7 @@ function getUserThemes() {
} }
function getSupportedLocales() { 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 [ return [
{ {
"id": "en", "id": "en",