Vue i18n v11.4.15
intlify/vue-i18n
Summary
Version 11.4.15 of Vue i18n includes several important bug fixes, such as improved property lookups in locale and plural rule handling, ensuring SSR compatibility with Node.js ESM, and better message compilation error reporting. Additionally, documentation has been updated to clarify locale requirements and the behavior of the te() function.
Full release notes
What's Changed
🐛 Bug Fixes
- fix: read only own properties in locale, key and plural rule lookups by @kazupon in https://github.com/intlify/vue-i18n/pull/2687
- fix: return a message that cannot be compiled as is, in development and production by @kazupon in https://github.com/intlify/vue-i18n/pull/2698
- fix: copy the i18n option of components instead of writing internal values into it by @kazupon in https://github.com/intlify/vue-i18n/pull/2700
- fix: name datetime and number formats in the warning when a format is not found by @kazupon in https://github.com/intlify/vue-i18n/pull/2703
- fix: make te() and tm() look up messages in the same way as t() by @kazupon in https://github.com/intlify/vue-i18n/pull/2705
- fix: read only own properties in the key-value message resolver by @kazupon in https://github.com/intlify/vue-i18n/pull/2707
- fix: do not read Object.prototype properties as named values, and ignore unknown linked modifiers by @kazupon in https://github.com/intlify/vue-i18n/pull/2711
- fix: do not write count and n into the named values of a plural call by @kazupon in https://github.com/intlify/vue-i18n/pull/2713
- fix: do not drop a flat key under a message AST with flatJson by @kazupon in https://github.com/intlify/vue-i18n/pull/2719
- fix: keep a flat key that ends with cacheKey under a message AST by @kazupon in https://github.com/intlify/vue-i18n/pull/2721
- fix: let Node.js ESM load the Node.js builds, so that SSR works in production by @kazupon in https://github.com/intlify/vue-i18n/pull/2729
- fix: keep a flat key that goes through a prop key or cacheKey of a message AST by @kazupon in https://github.com/intlify/vue-i18n/pull/2731
📝️ Documentations
- docs: explain that locales should be BCP 47 language tags by @kazupon in https://github.com/intlify/vue-i18n/pull/2696
- docs: describe the fallback of te(), and list te and $te as not included in petite-vue-i18n by @kazupon in https://github.com/intlify/vue-i18n/pull/2709
Full Changelog: https://github.com/intlify/vue-i18n/compare/v11.4.14...v11.4.15
