Skip to content

Commit

Permalink
Add i18n support with i18next
Browse files Browse the repository at this point in the history
Added the necessary libraries and tooling needed for i18n.

A new script added for extracting translations:

```
npm run i18n-extract
```
  • Loading branch information
attemoi committed Apr 29, 2024
1 parent 37ada70 commit d332a77
Show file tree
Hide file tree
Showing 17 changed files with 2,285 additions and 31 deletions.
11 changes: 11 additions & 0 deletions i18next-parser.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
defaultNamespace: "translation",
lineEnding: "\n",
locales: ["fi", "sv", "en"],
output: "src/i18n/$LOCALE/$NAMESPACE.json",
input: ["src/**/*.{ts,tsx}", "!**/__tests__/*"],
keySeparator: false,
namespaceSeparator: false,
contextSeparator: false,
createOldCatalogs: false,
};
Loading

0 comments on commit d332a77

Please sign in to comment.