Skip to content

Commit

Permalink
front: migrate to i18next-http-backend
Browse files Browse the repository at this point in the history
i18next-xhr-backend uses the old XMLHttpRequest API, so it has
been deprecated and replaced with a fetch()-based implementation:
/~https://github.com/i18next/i18next-xhr-backend?tab=readme-ov-file#deprecated

Signed-off-by: Simon Ser <contact@emersion.fr>
  • Loading branch information
emersion committed Jan 20, 2025
1 parent b828d20 commit a06753b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
29 changes: 19 additions & 10 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"html2canvas": "^1.4.1",
"i18next": "^24.2.1",
"i18next-browser-languagedetector": "^8.0.2",
"i18next-http-backend": "^3.0.1",
"i18next-parser": "^9.1.0",
"i18next-xhr-backend": "^3.2.2",
"immer": "^10.0.3",
"js-file-download": "^0.4.12",
"json-schema": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion front/src/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import Backend from 'i18next-xhr-backend';
import Backend from 'i18next-http-backend';
import { initReactI18next } from 'react-i18next';

// Official languages codes to use from IANA
Expand Down

0 comments on commit a06753b

Please sign in to comment.