Skip to content

Commit

Permalink
Fix: Fallback to English term for missing translations
Browse files Browse the repository at this point in the history
Use English term if no translation for the specified locale is
available by considering an empty string in a json locale file as "not
translated".
bjoernricks committed Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2dd3463 commit daf0eb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gmp/locale/lang.js
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ const I18N_OPTIONS = {
},
supportedLngs: whitelist,
nonExplicitSupportedLngs: false,
returnEmptyString: false,
interpolation: {
skipOnVariables: false,
},

0 comments on commit daf0eb1

Please sign in to comment.