codevdesign 0.0.49 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,11 +94,15 @@
94
94
  })
95
95
  const emit = defineEmits(['changementLangue'])
96
96
  // Fonction pour enregistrer la langue
97
+
97
98
  const enregistrerLangue = (): void => {
98
99
  const langueDispo: string = current.value === 'fr' ? 'en' : 'fr'
100
+ let returnUrl = window.location.pathname + window.location.search
101
+ if (import.meta.env.MODE === 'development') {
102
+ returnUrl = '/'
103
+ }
99
104
  window.location.href =
100
- props.urlBase +
101
- `/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${encodeURIComponent(props.urlBase + window.location.hash)}`
105
+ props.urlBase + `/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${encodeURIComponent(returnUrl)}`
102
106
  emit('changementLangue')
103
107
  }
104
108
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",