yassinedoghri / astro-i18next

An astro integration of i18next + some utility components to help you translate your astro websites!
https://astro-i18next.yassinedoghri.com
MIT License
521 stars 37 forks source link

Cannot read properties of undefined (reading 'map') in LanguageSelector component. #179

Closed timwehrle closed 1 year ago

timwehrle commented 1 year ago

Describe the bug I encountered an error in the LanguageSelector component that leads to a "Cannot read properties of undefined (reading 'map')" TypeError. This issue prevents the component from functioning as expected.

To Reproduce

Steps to reproduce the behavior:

  1. Import LanguageSelector from astro-i18next on any page or component
  2. See error on dev server

Expected behavior

A working LanguageSelector to choose locale language.

Screenshots

Screenshot 2023-10-03 130833 Screenshot 2023-10-03 at 13-09-07

Context (please complete the following information):

My config files are the same as in the example. And the language selector is imported as in the example.

timwehrle commented 1 year ago

Ok, fixed it with downgrading to i18next@22.5.1!