codevdesign 0.0.49 → 0.0.50

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,12 @@
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
+ const hash = window.location.hash || '/'
99
101
  window.location.href =
100
- props.urlBase +
101
- `/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${encodeURIComponent(props.urlBase + window.location.hash)}`
102
+ props.urlBase + `/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${encodeURIComponent(hash)}`
102
103
  emit('changementLangue')
103
104
  }
104
105
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",