diff --git a/Shortcuts/firebase/functions/inc/shortcut.js b/Shortcuts/firebase/functions/inc/shortcut.js
index d4b1750..698b688 100644
--- a/Shortcuts/firebase/functions/inc/shortcut.js
+++ b/Shortcuts/firebase/functions/inc/shortcut.js
@@ -255,7 +255,7 @@ module.exports = function(info, errors)
This corresponds to the position of your Google account in the list of connected accounts. Check the bubble in the top-right corner of google.com to see this list.
In order to store your account ID, this will register the number you have picked as a cookie in your browser. It will not be used for tracking purposes.
-
+
Save
diff --git a/Shortcuts/firebase/public/lang/en_US.json b/Shortcuts/firebase/public/lang/en_US.json
index 36e3532..ccdab0a 100644
--- a/Shortcuts/firebase/public/lang/en_US.json
+++ b/Shortcuts/firebase/public/lang/en_US.json
@@ -70,7 +70,7 @@
"info": "This corresponds to the position of your Google account in the list of connected accounts.{0}Check the bubble in the top-right corner of {1} to see this list.",
"confirm": "In order to store your account ID, this will register the number you have picked as a cookie in your browser. It will not be used for tracking purposes.",
"confirmButton": "Save",
- "confirmButtonTitleAttr": "Save your prefered Googla account ID as a Cookie."
+ "confirmButtonTitleAttr": "Save your prefered Google account ID as a Cookie."
},
"alert":
{
diff --git a/Shortcuts/firebase/public/scripts/lang.js b/Shortcuts/firebase/public/scripts/lang.js
index d9be384..494d803 100644
--- a/Shortcuts/firebase/public/scripts/lang.js
+++ b/Shortcuts/firebase/public/scripts/lang.js
@@ -224,12 +224,12 @@ function TranslateHtml(data)
{
if (elems && elems.length > 0)
{
- //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translation Error: target not found for ', 'Translating {', objs[i].innerHTML, '} into {', target.format(elems), '} using these elements: ', elems);
+ //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translating {', objs[i].innerHTML, '} into {', target.format(elems), '} using these elements: ', elems);
objs[i].innerHTML = target.format(elems);
}
else
{
- //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translation Error: target not found for ', 'Translating {', objs[i].innerHTML, '} into {', target, '}.');
+ //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translating {', objs[i].innerHTML, '} into {', target, '}.');
objs[i].innerHTML = target;
}
}
@@ -253,12 +253,12 @@ function TranslateTitles( data )
{
if ( elems && elems.length > 0 )
{
- //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translation Error: target not found for ', 'Translating {', objs[i].title, '} into {', target.format(elems), '} using these elements: ', elems);
+ //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translating {', objs[i].title, '} into {', target.format(elems), '} using these elements: ', elems);
objs[i].title = target.format( elems );
}
else
{
- //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translation Error: target not found for ', 'Translating {', objs[i].title, '} into {', target, '}.');
+ //console.log('%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translating {', objs[i].title, '} into {', target, '}.');
objs[i].title = target;
}
}
@@ -310,12 +310,20 @@ function GetLangString(pathString, data)
{
const path = pathString.split( '.' );
var target = data;
-
- for (p in path)
+
+ try
{
- target = target[path[p]];
+ for ( p in path )
+ {
+ target = target[path[p]];
+ }
+ return target;
+ }
+ catch ( err )
+ {
+ //console.log( '%cStadiaIcons', 'display: inline-block; padding: 0em 0.2em; font-size: 1.08em; border-radius: 0.2em; font-weight: 900; -webkit-linear-gradient(107deg,#ff4c1d,#9b0063); background: linear-gradient(107deg,#ff4c1d,#9b0063); font-family:"Google Sans","Product Sans","Roboto",sans-serif;', 'Translation Error: target not found for [' + pathString + '] using these elements:', data );
+ return false;
}
- return target;
}