Sourced from i18next-cli's changelog.
1.74.5
- fix(extract): a value typed as an array of a string union (
Color[],readonly Color[],Array<Color>or an alias of one) now resolves to the union's values, socolors.map((color) => t(\color.${color}`))andfor (const color of colors)extract every key instead of nothing. Before, this only worked withcolor as Color`. Fixes #300.
954db34
1.74.560c2773
fix(extract): resolve arrays of a string union to the union's values #300