You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that nested object did not work for me when I built for production. Looked around in the source code and noticed the locale is not flattened for getLocaleProps. So when create-t tries to do let value = scope ? content[`${scope}.${key}`] : content[key]; it would never find the values since content is a nested object.
Did these changes direct in node modules and it seems to resolve my issue. lindesvard@d6394e5
Using next pages as routing
To Reproduce
Just setup a new project with nested objects as translations.
npm run builld
No values are shown
Expected behavior
Nested object should resolve in correct value and not display the key.
About (please complete the following information):
next-international version 0.9.5
Next.js version 13.4.19
The text was updated successfully, but these errors were encountered:
Hey,
Noticed that nested object did not work for me when I built for production. Looked around in the source code and noticed the locale is not flattened for
getLocaleProps
. So when create-t tries to dolet value = scope ? content[`${scope}.${key}`] : content[key];
it would never find the values since content is a nested object.Did these changes direct in node modules and it seems to resolve my issue. lindesvard@d6394e5
Using next pages as routing
To Reproduce
npm run builld
Expected behavior
Nested object should resolve in correct value and not display the key.
About (please complete the following information):
The text was updated successfully, but these errors were encountered: