Skip to content

Commit

Permalink
Merge pull request #221 from akaene/fix/i18n-translation-fix
Browse files Browse the repository at this point in the history
Updated i18n config (translation.json path fix)
  • Loading branch information
blcham authored Mar 27, 2024
2 parents ff93374 + 3a26998 commit 95582ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/i18n.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import Backend from "i18next-http-backend";
import translationEN from "../public/locales/en/translation.json";
import translationCS from "../public/locales/cs/translation.json";

i18n
.use(Backend)
.use(initReactI18next)
.init({
resources: {
en: { translation: translationEN },
cs: { translation: translationCS },
},
fallbackLng: "en",
debug: true,

Expand Down

0 comments on commit 95582ff

Please sign in to comment.