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.
It is a basic example and shows:
typesafe-i18n
rel="alternate"
linkshreflang
attributeWhat is missing:
You can find the exact same example in a JavaScript only version here.
It offers the same typesafety features but instead of TypeScript files it is written in JavaScript with JsDoc comments.
If you want to know more about typesafe-i18n
head over to the main repo: