Switch translations to JSON and fix some errors
Issue #41. Should also resolve issue #126.
This commit is contained in:
parent
473cabbc02
commit
c9f237d8c1
5 changed files with 190 additions and 190 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue