Here is a video for better context. SvelteKit has undergone some major changes since this video was published. For the most up-to-date way of handling i18n, please refer to the code in this repository.
This example demonstrates a typesafe-i18n
-integration with SvelteKit with JsDoc comments.
It is a basic example and shows:
typesafe-i18n
What is missing:
typesafe-i18n
to an existing SvelteKit projectIf you want to implement the solution in a existing project, you can take a look at the commit history to see a step-by-step guide.
You can find the exact same example in a TypeScript version here.
If you want to know more about typesafe-i18n
head over to the main repo: