diff --git a/app-localize-behavior.html b/app-localize-behavior.html index 822f2c9..3c1b320 100644 --- a/app-localize-behavior.html +++ b/app-localize-behavior.html @@ -260,7 +260,7 @@ return function() { var key = arguments[0]; if (!key || !resources || !language || !resources[language]) - return; + return (key && this.useKeyIfMissing) ? key : undefined; // Cache the key/value pairs for the same language, so that we don't // do extra work if we're just reusing strings across an application. diff --git a/test/basic.html b/test/basic.html index ba82a4c..5ecc14b 100644 --- a/test/basic.html +++ b/test/basic.html @@ -69,6 +69,11 @@ + + +