langie 2.0.3 → 2.0.5
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 +11 -2
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.css.map +1 -1
- package/dist/components/index.mjs +21 -12
- package/dist/components/index.mjs.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.mjs +1 -1
- package/dist/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +21 -12
- 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.5
|
|
3
3
|
* (c) 2026 nlit
|
|
4
4
|
* @license Apache-2.0
|
|
5
5
|
*
|
|
@@ -777,7 +777,9 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
777
777
|
});
|
|
778
778
|
const searchQuery = (0, import_vue3.ref)("");
|
|
779
779
|
const transliterate = (0, import_vue3.shallowRef)(null);
|
|
780
|
-
const searchInputAttrs = (0, import_vue3.computed)(() => ({
|
|
780
|
+
const searchInputAttrs = (0, import_vue3.computed)(() => ({
|
|
781
|
+
placeholder: props.modelValue?.code ? void 0 : props.placeholder
|
|
782
|
+
}));
|
|
781
783
|
const validLanguages = (0, import_vue3.computed)(() => {
|
|
782
784
|
return props.languages.filter((lang) => lang && lang.code && lang.name && lang.native_name);
|
|
783
785
|
});
|
|
@@ -1559,6 +1561,13 @@ function useLangieCore(options = {}) {
|
|
|
1559
1561
|
}).catch(() => {
|
|
1560
1562
|
});
|
|
1561
1563
|
};
|
|
1564
|
+
(0, import_vue4.watch)(
|
|
1565
|
+
[() => availableLanguages.value.length, currentLanguage],
|
|
1566
|
+
([count, lang]) => {
|
|
1567
|
+
if (count) applyLocalizedNames(lang);
|
|
1568
|
+
},
|
|
1569
|
+
{ immediate: true }
|
|
1570
|
+
);
|
|
1562
1571
|
const setLanguage = (lang) => {
|
|
1563
1572
|
if (lang && lang !== currentLanguage.value) {
|
|
1564
1573
|
}
|