Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-16465 json: drop the -modern tier (by default) #3864

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private class AvailableLocales {
"Modern",
'M',
"(true|false)",
"true",
"false",
"Whether to include the -modern tier")
// Primarily useful for non-Maven build systems where CldrUtility.LICENSE may
// not be available as it is put in place by pom.xml
Expand Down Expand Up @@ -1528,6 +1528,7 @@ public void writeScriptMetadata(String outputDir) throws IOException {
}

public void writePackageList(String outputDir) throws IOException {
final boolean includeModern = Boolean.parseBoolean(options.get("Modern").getValue());
PrintWriter outf =
FileUtilities.openUTF8Writer(outputDir + "/cldr-core", "cldr-packages.json");
System.out.println(
Expand Down Expand Up @@ -1582,7 +1583,7 @@ public void writePackageList(String outputDir) throws IOException {
packageEntry.get("name").getAsString(),
packageEntry.get("description").getAsString());
}
{
if (includeModern) {
JsonObject packageEntry = new JsonObject();
packageEntry.addProperty("description", e.getValue() + " modern (deprecated)");
packageEntry.addProperty("tier", "modern");
Expand Down
Loading