Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks i18next when using arrays or objects #143

Open
metatick opened this issue Aug 23, 2023 · 1 comment
Open

Breaks i18next when using arrays or objects #143

metatick opened this issue Aug 23, 2023 · 1 comment

Comments

@metatick
Copy link

ShopifyFormat.parse seems to assume that res is always a string, which unfortunately means that it's not possible to use arrays or objects with i18next.

https://www.i18next.com/translation-function/objects-and-arrays

I'd guess that's it's just a matter of recursively iterating over objects/arrays, but I don't know enough about the inner workings of i18next to know for sure.

@artyrcheek
Copy link

Facing same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants