Skip to content

Commit

Permalink
fix: i18next json compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zovomat committed May 30, 2022
1 parent 1d407cf commit 4d9816e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module.exports = {
{
outputPath: 'translations/{{ns}}.json',
defaultNS: 'en',
jsonSpace: 4
jsonSpace: 4,
compatibilityJSON: 'v3'
}
]
]
Expand Down
1 change: 1 addition & 0 deletions src/i18n/i18n-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default class I18nFactory implements II18nFactory {
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
returnEmptyString: true,
compatibilityJSON: 'v3',
lng: this.locale,
fallbackLng: 'en',
debug: false,
Expand Down

0 comments on commit 4d9816e

Please sign in to comment.