Skip to content

Commit

Permalink
update loadPath for a i18n config
Browse files Browse the repository at this point in the history
  • Loading branch information
stasguma committed Apr 25, 2024
1 parent ff61900 commit f524822
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shared/config/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ i18n
interpolation: {
escapeValue: false, // react already safes from xss
},
backend: {
loadPath: __IS_DEV__ ? '/locales/{{lng}}/{{ns}}.json' : '../public/locales/{{lng}}/{{ns}}.json',
},
});

export default i18n;

0 comments on commit f524822

Please sign in to comment.