Skip to content

Commit

Permalink
fix: translation loading
Browse files Browse the repository at this point in the history
- fallback to `window.location.origin` as base path
  • Loading branch information
cgawron committed Sep 26, 2024
1 parent 97113a9 commit a401675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
// have a look at the Quick start guide
// for passing in lng and translations on init

const BASE_PATH = import.meta.env.REACT_APP_BASE_PATH || window.location.origin;
const BASE_PATH = window.location.origin;

i18n
// load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)
Expand Down

0 comments on commit a401675

Please sign in to comment.