SvelteThemes
SvelteThemes
Themes
Resources
Categories
Favorites
Paid
Updates
Submit
Sk I18n
theetrain
Proof of concept for i18n with SvelteKit
Download
Svelte i18n
Proof of concept repository that showcases a library-less approach to i18n with SvelteKit.
Features
Translation Remote Function in
src/lib/i18n.remote.ts
Typed translation keys and returned strings
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:
Provide gitignored CSV
Generate JSON file from vite plugin
Read from JSON file once in a server module at startup
t
function reads from in-memory data.
Intl
API integration, plurality example.
Translation menu on browser to switch between languages
Top categories
tailwind
daisyui
admin template
popup
mdsvex
portfolio
blog
form
ecommerce
ui
carousel
auth
dark
seo
image
routing