sk-i18n Svelte Themes

Sk I18n

Proof of concept for i18n with SvelteKit

Svelte i18n

Proof of concept repository that showcases a library-less approach to i18n with SvelteKit.

Features

Todo

  • Create t remote function that accepts translation keys
  • Add types to generated JSON
  • Create Vite plugin to enable HMR when CSV values update, with a CSV -> JSON conversion pipeline
  • Adjust workflow to be:
    1. Provide gitignored CSV
    2. Generate JSON file from vite plugin
    3. Read from JSON file once in a server module at startup
    4. t function reads from in-memory data.
  • Intl API integration, plurality example.
  • Translation menu on browser to switch between languages

Top categories

Loading Svelte Themes