From 42f205e4738b5f40264ae5f1662796336d3372c1 Mon Sep 17 00:00:00 2001 From: Sebastian CZECH Date: Wed, 22 Jan 2025 14:55:01 +0100 Subject: [PATCH] feat(xo-6): switch to language based on xo5 cookie (#8242) --- @xen-orchestra/web/package.json | 2 ++ @xen-orchestra/web/src/App.vue | 7 +++++++ CHANGELOG.unreleased.md | 3 +-- yarn.lock | 26 ++++++++++++++++++++++++-- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/@xen-orchestra/web/package.json b/@xen-orchestra/web/package.json index e5c0f6b5a4a..9291bc0a206 100644 --- a/@xen-orchestra/web/package.json +++ b/@xen-orchestra/web/package.json @@ -25,6 +25,7 @@ "@vue/tsconfig": "^0.5.1", "@vueuse/core": "^10.7.1", "@vueuse/math": "^10.7.1", + "@vueuse/integrations": "^10.7.1", "@xen-orchestra/web-core": "^0.10.0", "human-format": "^1.2.1", "lodash-es": "^4.17.21", @@ -35,6 +36,7 @@ "postcss-custom-media": "^10.0.2", "postcss-nested": "^6.0.1", "typescript": "~5.6.3", + "universal-cookie": "^7.2.2", "unplugin-vue-router": "^0.10.1", "vite": "^5.4.10", "vue": "~3.5.12", diff --git a/@xen-orchestra/web/src/App.vue b/@xen-orchestra/web/src/App.vue index 458609601f1..c9c515beaa1 100644 --- a/@xen-orchestra/web/src/App.vue +++ b/@xen-orchestra/web/src/App.vue @@ -8,13 +8,20 @@