Skip to content

Commit

Permalink
fix(project): allow empty translations to fall back to the default la…
Browse files Browse the repository at this point in the history
…nguage
  • Loading branch information
ChristiaanScheermeijer committed Jun 1, 2023
1 parent e4b9267 commit dedcade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const initI18n = async () => {
.init({
supportedLngs: supportedLanguages.map(({ code }) => code),
fallbackLng: defaultLanguage,
// this option ensures that empty strings in translations will fall back to the default language
returnEmptyString: false,
ns: NAMESPACES,
defaultNS: 'common',
fallbackNS: 'common',
Expand Down

0 comments on commit dedcade

Please sign in to comment.