Skip to content

Commit

Permalink
Fixed returning key when value is empty string
Browse files Browse the repository at this point in the history
refs #15502

- in the event the value is an empty string, we want to return the key
- this config option enables that
  • Loading branch information
daniellockyer committed Feb 27, 2023
1 parent 96a64b4 commit 2804445
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ghost/i18n/lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module.exports = (lng = 'en') => {
nsSeparator: false,
keySeparator: false,

// if the value is an empty string, return the key
returnEmptyString: false,

// do not load a fallback
fallbackLng: false,

Expand Down

0 comments on commit 2804445

Please sign in to comment.