From 579c636d50307200e870887b876a2d524c295f38 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Thu, 22 Feb 2024 17:25:46 +0100 Subject: [PATCH] [web] Reorganise i18n --- web-src/package.json | 2 +- web-src/src/{locales => i18n}/de.json | 0 web-src/src/{locales => i18n}/en.json | 0 web-src/src/{locales => i18n}/fr.json | 0 web-src/src/{i18n.js => i18n/index.js} | 0 web-src/src/{locales => i18n}/zh.json | 0 web-src/src/{audio.js => lib/Audio.js} | 0 web-src/vite.config.js | 2 +- 8 files changed, 2 insertions(+), 2 deletions(-) rename web-src/src/{locales => i18n}/de.json (100%) rename web-src/src/{locales => i18n}/en.json (100%) rename web-src/src/{locales => i18n}/fr.json (100%) rename web-src/src/{i18n.js => i18n/index.js} (100%) rename web-src/src/{locales => i18n}/zh.json (100%) rename web-src/src/{audio.js => lib/Audio.js} (100%) diff --git a/web-src/package.json b/web-src/package.json index 864a6580..ca26ba05 100644 --- a/web-src/package.json +++ b/web-src/package.json @@ -8,7 +8,7 @@ "lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src", "dev": "vite", "format": "prettier . --write", - "i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales \"./src/locales/**/*.json\"", + "i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales \"./src/i18n/**/*.json\"", "preview": "vite preview" }, "dependencies": { diff --git a/web-src/src/locales/de.json b/web-src/src/i18n/de.json similarity index 100% rename from web-src/src/locales/de.json rename to web-src/src/i18n/de.json diff --git a/web-src/src/locales/en.json b/web-src/src/i18n/en.json similarity index 100% rename from web-src/src/locales/en.json rename to web-src/src/i18n/en.json diff --git a/web-src/src/locales/fr.json b/web-src/src/i18n/fr.json similarity index 100% rename from web-src/src/locales/fr.json rename to web-src/src/i18n/fr.json diff --git a/web-src/src/i18n.js b/web-src/src/i18n/index.js similarity index 100% rename from web-src/src/i18n.js rename to web-src/src/i18n/index.js diff --git a/web-src/src/locales/zh.json b/web-src/src/i18n/zh.json similarity index 100% rename from web-src/src/locales/zh.json rename to web-src/src/i18n/zh.json diff --git a/web-src/src/audio.js b/web-src/src/lib/Audio.js similarity index 100% rename from web-src/src/audio.js rename to web-src/src/lib/Audio.js diff --git a/web-src/vite.config.js b/web-src/vite.config.js index f0774a2c..25dd6109 100644 --- a/web-src/vite.config.js +++ b/web-src/vite.config.js @@ -16,7 +16,7 @@ export default defineConfig({ plugins: [ vue(), i18n({ - include: path.resolve(__dirname, './src/locales/**') + include: path.resolve(__dirname, './src/i18n/**.json') }) ], build: {