Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
467 changes: 442 additions & 25 deletions bun.lock

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions i18next-parser.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
locales: ["ko", "en"],
input: ["src/**/*.{ts,tsx}"],
output: "public/locales/$LOCALE/$NAMESPACE.json",
defaultNamespace: "common",
defaultValue: "",
keySeparator: ".",
namespaceSeparator: ":",
createOldCatalogs: false,
keepRemoved: true,
sort: true
};
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,26 @@
"dev:preview": "bun run build && bunx wrangler pages dev dist",
"preview": "vite preview",
"test": "bun test",
"test:watch": "bun test --watch"
"test:watch": "bun test --watch",
"i18n:extract": "bunx i18next --config i18next-parser.config.cjs"
},
"dependencies": {
"dompurify": "^3.3.1",
"emoji-datasource": "^16.0.0",
"i18next": "^25.8.1",
"i18next-browser-languagedetector": "^8.2.0",
"i18next-http-backend": "^3.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^16.5.4",
"wrangler": "3.90.0"
},
"devDependencies": {
"@types/dompurify": "^3.2.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"i18next-parser": "^9.3.0",
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vite-plugin-svgr": "^4.5.0"
Expand Down
Loading