[Glitch] Fix /share and cleanup and reorganize frontend locale loading

Port b0780cfeed to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput
2023-06-02 15:00:27 +02:00
committed by Claire
parent 734e186717
commit 9e66c07be7
14 changed files with 151 additions and 86 deletions

View File

@@ -1,11 +1,11 @@
import 'packs/public-path';
import { loadLocale } from 'flavours/glitch/load_locale';
import { loadLocale } from 'flavours/glitch/locales';
import main from "flavours/glitch/main";
import { loadPolyfills } from 'flavours/glitch/polyfills';
loadPolyfills().then(loadLocale).then(async () => {
const { default: main } = await import('flavours/glitch/main');
return main();
}).catch(e => {
console.error(e);
});
loadPolyfills()
.then(loadLocale)
.then(main)
.catch(e => {
console.error(e);
});