[Fix] Return key if missing language

This commit is contained in:
Robert von Burg 2023-07-04 12:35:05 +02:00
parent 73fa021047
commit c9e1da2494
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "strolch-wc-localize-behavior",
"description": "Strolch Polymer Localization Behavior extension",
"version": "1.1.16",
"version": "1.1.17",
"authors": [
"Franz Nieschalk",
"Robert von Burg"

View File

@ -20,8 +20,10 @@
return function () {
var key = arguments[0];
if (!key || !resources || !language || !resources[language])
return;
if(!key)
return "!!no-key!!";
if (!resources || !language || !resources[language])
return key;
try {
return localizeFunc.apply(this, arguments);