Moved the localizeObjectKeys() function into a global localization script.