#How to config qwik-speak to using data json from cdn?
8 messages · Page 1 of 1 (latest)
paging @velvet blade
@sterile flare json data are inlined during the build... However, you can load data from wherever you prefer, by customizing the loadTranslation$ function: https://robisim74.gitbook.io/qwik-speak/library/translation-functions If you have any question, open a discussion on the repository
@velvet blade I have read and followed the documentation, but I couldn't resolve the issue. Please check and support me. https://github.com/robisim74/qwik-speak/issues/137
this issue still on my page https://co-ggpay-paypal.myshopbase.net/checkouts/4d9af10dd45f4d5496a77f1bd273df44, issue appear if you change value of signal variable from select box checkout_and_system.form.country_or_region
@velvet blade thank your support, but I tried configuring loadAssets as you suggested, but it still doesn't solve the issue I'm facing. The decision on which asset URL to load depends on the lang parameter.
For example, when the request comes in with a header like request.headers.get('x-lang') = zh, I need to load assets from https://assets-dev.shopbase.net/checkout/assets/locales/gpt/zh.json. If it's en, then I need to fetch assets from https://assets-dev.shopbase.net/checkout/assets/locales/gpt/en.json.
This cannot be statically configured in vite.fastify.ts :(((