Skip to content

Commit

Permalink
support fallback of empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 authored Feb 8, 2021
1 parent eb43a3c commit 4a43b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
subKey = '';
while (entries.length && message !== undefined) {
var subKey = !subKey ? entries.shift() : subKey.concat('.', entries.shift());
if (message[subKey]) {
if (message[subKey] !== undefined) {
message = message[subKey]
subKey = '';
}
Expand Down

0 comments on commit 4a43b3d

Please sign in to comment.