When loading translations from json files in the local assets folder,they can't be loaded by the Node server when using Server-side rendering.
Steps to reproduce:
i18n: {
backend: {
loadPath: 'assets/translations/{{lng}}/{{ns}}.json',
},
chunks: translationChunksConfig,
fallbackLang: 'en'
},
yarn build:ssr
and
yarn serve:ssr
One possible workaround is to just compile the translation into the code using Typescript files. But is there a way to also get this to work with JSON?
Thank you, Armin
While the issue was addressed before in in https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/6030, there has been a new bug observed: https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/6307. The latter is fixed, but not yet merged. I've just raised priority and hope we can deliver this soon in a patch release for 1.4.x.