Skip to content

Commit

Permalink
CLDR-16465 json: drop the -modern tier (by default) (#3864)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored Jul 15, 2024
1 parent 7750859 commit 7e241ba
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 7e241ba

Please sign in to comment.