Skip to content

Commit

Permalink
chore(#2325): change en translation resource to json
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Nov 5, 2024
1 parent b6e65ce commit d20edd7
Show file tree
Hide file tree
Showing 4 changed files with 779 additions and 898 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ changes.

### Changed

-
- Change multilanguage support to use json file [Issue 2325](https://github.com/IntersectMBO/govtool/issues/2325)

### Removed

Expand Down
6 changes: 4 additions & 2 deletions govtool/frontend/src/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";

import { en } from "./locales/en";
import en from "./locales/en.json";

i18n.use(initReactI18next).init({
resources: {
en,
en: {
translation: en,
},
},
fallbackLng: "en",
interpolation: {
Expand Down
Loading

0 comments on commit d20edd7

Please sign in to comment.