StringBuffer data = new StringBuffer();
// we build an js object with key-value pairs
data.append("var transData = {");
Locale referenceLocale = I18nModule.getFallbackLocale();
Properties properties = getPropertiesWithoutResolvingRecursively(referenceLocale, bundleName);
Set<Object> keys = properties.keySet();
boolean addComma = false;
for (Object keyObject : keys) {
String key = (String) keyObject;
String value = getLocalizedString(bundleName, key, null, locale, I18nModule.isOverlayEnabled(), true);
if (value == null) {