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/core.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * langie v2.0.3
2
+ * langie v2.0.5
3
3
  * (c) 2026 nlit
4
4
  * @license Apache-2.0
5
5
  *
package/dist/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * langie v2.0.3
2
+ * langie v2.0.5
3
3
  * (c) 2026 nlit
4
4
  * @license Apache-2.0
5
5
  *
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * langie v2.0.3
2
+ * langie v2.0.5
3
3
  * (c) 2026 nlit
4
4
  * @license Apache-2.0
5
5
  *
@@ -632,6 +632,13 @@ function useLangieCore(options = {}) {
632
632
  }).catch(() => {
633
633
  });
634
634
  };
635
+ (0, import_vue.watch)(
636
+ [() => availableLanguages.value.length, currentLanguage],
637
+ ([count, lang]) => {
638
+ if (count) applyLocalizedNames(lang);
639
+ },
640
+ { immediate: true }
641
+ );
635
642
  const setLanguage = (lang) => {
636
643
  if (lang && lang !== currentLanguage.value) {
637
644
  }
@@ -2248,7 +2255,9 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue3.defineComponent)({
2248
2255
  });
2249
2256
  const searchQuery = (0, import_vue5.ref)("");
2250
2257
  const transliterate = (0, import_vue5.shallowRef)(null);
2251
- const searchInputAttrs = (0, import_vue5.computed)(() => ({ placeholder: props.placeholder }));
2258
+ const searchInputAttrs = (0, import_vue5.computed)(() => ({
2259
+ placeholder: props.modelValue?.code ? void 0 : props.placeholder
2260
+ }));
2252
2261
  const validLanguages = (0, import_vue5.computed)(() => {
2253
2262
  return props.languages.filter((lang) => lang && lang.code && lang.name && lang.native_name);
2254
2263
  });