v26.5.11
Fixed 1
- A nested false, 0 or empty string value is now returned when a flat key with the same dotted name also exists, instead of falling through to the flat key lookup
From i18next
- fix: a nested
false,0or''is now returned when a flat key with the same dotted name also exists. With{ a: { b: false }, 'a.b': 'flat' },getResource('en', 'translation', 'a.b')andt('a.b')returned'flat': the nested result was checked for truthiness, so these present values fell through to the flat-key lookup. Without such a flat key they were already returned. A nestednull, which is not a valid lookup by default (returnNull: false), still falls back to the flat key. Thanks @lprnmns (#2461).