Switch translations to JSON and fix some errors

Issue #41. Should also resolve issue #126.
This commit is contained in:
N-Pex 2021-05-25 11:14:29 +02:00
parent 473cabbc02
commit c9f237d8c1
5 changed files with 190 additions and 190 deletions

View file

@ -10,10 +10,10 @@ function importAll(r) {
// Remove"./"
const parts = res.split("/");
const locale = parts[1].split(".")[0];
messages[locale] = r(res).default;
messages[locale] = r(res);
});
}
importAll(require.context('@/assets/translations/', true, /\.js$/));
importAll(require.context('@/assets/translations/', true, /\.json$/));
export default new VueI18n({