Skip to content

Commit

Permalink
feat: initial i18n support #71
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousm4x committed Sep 30, 2023
1 parent 31dbf4d commit 003c202
Show file tree
Hide file tree
Showing 13 changed files with 2,788 additions and 535 deletions.
6 changes: 6 additions & 0 deletions frontend/.typesafe-i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"adapter": "svelte",
"$schema": "https://unpkg.com/[email protected]/schema/typesafe-i18n.json",
"baseLocale": "en-US",
"outputPath": "./src/lib/i18n/"
}
10 changes: 7 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"dev": "npm-run-all --parallel vite typesafe-i18n",
"vite": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "eslint --fix --cache --ignore-path ../.gitignore .",
"format": "prettier --write --cache --cache-strategy content --ignore-path ../.gitignore .",
"prepare": "cd .. && husky install frontend/.husky"
"prepare": "cd .. && husky install frontend/.husky",
"typesafe-i18n": "typesafe-i18n"
},
"devDependencies": {
"@sveltejs/adapter-static": "^2.0.3",
Expand Down Expand Up @@ -41,9 +43,11 @@
"dependencies": {
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"date-fns": "^2.30.0",
"npm-run-all": "^4.1.5",
"pocketbase": "^0.18.0",
"svelte-fa": "^3.0.4",
"svelte-french-toast": "^1.2.0",
"theme-change": "^2.5.0"
"theme-change": "^2.5.0",
"typesafe-i18n": "^5.26.2"
}
}
Loading

0 comments on commit 003c202

Please sign in to comment.