});
if (!splitData.getPaths().isEmpty() || isBaseLanguage || dir.includeEmpty()) {
- splitData.setVersion(cldrVersion);
+ if (id.equals("root")) {
+ splitData.setVersion(cldrVersion);
+ }
write(splitData, outDir, false);
writtenLocaleIds.put(dir, id);
}
} else {
// These empty files only exist because the target of an alias has a parent locale
// which is itself not in the set of written ICU files. An "indirect alias target".
- icuData.setVersion(config.getVersionInfo().getCldrVersion());
+ // No need to add data: Just write a resource bundle with an empty top-level table.
}
write(icuData, dir, false);
}