-
Great repo thanks. However one issue: Using nodejs ES6 module as import LL from './src/i18n/i18n-svelte.js'; not working. As you know NodeJS works with require however me is using import
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Also, using sveltekit as fullstack thus need to use svelte and node adapter (ES6 2015) at the same time. Any suggestions. Edit: Actually noticed that I can't import it for my JS server file stating that ".ts" is not recognized. How to integrate? Nodejs is very challanging with all puppeteer and other modules with .ts (typescript) support. Thanks |
Beta Was this translation helpful? Give feedback.
-
Have you tried the If you need to use two different adapters, you would need to generate the code twice. Set the adapter to an option and run the generator. Then do the same again for the other adapter. You could run your node code together with TypeScript with a tool like |
Beta Was this translation helpful? Give feedback.
-
Thanks @ivanhofer . That has resolved my inquiry. The best library for i18n and great guider you are |
Beta Was this translation helpful? Give feedback.
Have you tried the
esmImports
option?If you need to use two different adapters, you would need to generate the code twice. Set the adapter to an option and run the generator. Then do the same again for the other adapter.
You could run your node code together with TypeScript with a tool like
tsx
.