langie 2.0.3 → 2.0.4
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.
- package/dist/components/index.cjs +8 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.mjs +18 -11
- package/dist/components/index.mjs.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.mjs +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +18 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* langie v2.0.
|
|
2
|
+
* langie v2.0.4
|
|
3
3
|
* (c) 2026 nlit
|
|
4
4
|
* @license Apache-2.0
|
|
5
5
|
*
|
|
@@ -1559,6 +1559,13 @@ function useLangieCore(options = {}) {
|
|
|
1559
1559
|
}).catch(() => {
|
|
1560
1560
|
});
|
|
1561
1561
|
};
|
|
1562
|
+
(0, import_vue4.watch)(
|
|
1563
|
+
[() => availableLanguages.value.length, currentLanguage],
|
|
1564
|
+
([count, lang]) => {
|
|
1565
|
+
if (count) applyLocalizedNames(lang);
|
|
1566
|
+
},
|
|
1567
|
+
{ immediate: true }
|
|
1568
|
+
);
|
|
1562
1569
|
const setLanguage = (lang) => {
|
|
1563
1570
|
if (lang && lang !== currentLanguage.value) {
|
|
1564
1571
|
}
|