Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Feb 23, 2023
1 parent b64b993 commit cd108c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion react-i18next.js
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,9 @@
if (!i18n) {
warnOnce('You will need to pass in an i18next instance by using initReactI18next');

var notReadyT = function notReadyT(k) {
var notReadyT = function notReadyT(k, optsOrDefaultValue) {
if (typeof optsOrDefaultValue === 'string') return optsOrDefaultValue;
if (optsOrDefaultValue && _typeof(optsOrDefaultValue) === 'object' && typeof optsOrDefaultValue.defaultValue === 'string') return optsOrDefaultValue.defaultValue;
return Array.isArray(k) ? k[k.length - 1] : k;
};

Expand Down
Loading

0 comments on commit cd108c9

Please sign in to comment.