nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

fix: rename locale `iso` property to `language` #3055

Closed BobbieGoede closed 1 month ago

BobbieGoede commented 1 month ago

πŸ”— Linked issue

❓ Type of change

πŸ“š Description

As discussed in https://github.com/nuxt-modules/i18n/issues/2449, this renames the iso key to language to better fit the usage of the property.

This PR should be backwards compatible but will log a warning when iso is being used instead of language. We should again remember to remove the backwards compatibility before releasing v9.

πŸ“ Checklist

BobbieGoede commented 1 month ago

@kazupon I made changes based on your feedback, let me know if anything needs to be changed!