var jsTranslatableStrings = { "Show more" : "Mehr anzeigen" }; function __tr(translationKey) { var translated = translationKey; if(jsTranslatableStrings[translationKey]) { translated = jsTranslatableStrings[translationKey]; } return translated; }