Romanchuk / angular-i18next

angular v10+ integration with i18next v19.4+
MIT License
131 stars 33 forks source link

whitelist is not in i18n.InitOptions #81

Closed tomtrapp closed 2 years ago

tomtrapp commented 2 years ago

When setting up a new project with angular-i18next, the build fails because whitelist is not a property of i18n.InitOptions

Romanchuk commented 2 years ago

@tomtrapp whitelist property has removed in i18next v21 (https://www.i18next.com/misc/migration-guide#removed-deprecated)

The old deprecated whitelist options and functions have been definitively removed.

  • rename option whitelist to supportedLngs
  • rename option nonExpicitWhitelist to nonExplicitSupportedLngs
  • rename function languageUtils.isWhitelisted to languageUtils.isSupportedCode

angular-i18next relates to your i18next version and its types

Romanchuk commented 2 years ago

Check your versions and correct i18next config according to its version

tomtrapp commented 2 years ago

Then please update your documentation step 3 under Installation :) There is whitelist still referenced