1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

chore: switch formatter to format-message (#4088)

Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
This commit is contained in:
Sami Mazouz
2024-10-24 16:48:33 +01:00
committed by GitHub
parent 0464324485
commit 73a029641a
11 changed files with 297 additions and 106 deletions

View File

@@ -36,6 +36,7 @@ export default function bootstrap(Application, app, payload = {}) {
...payload,
});
app.translator.setLocale('en');
app.translator.addTranslations(flatten(jsYaml.load(fs.readFileSync('../locale/core.yml', 'utf8'))));
app.drawer = new Drawer();
}