From 7e241ba35755a1e243c7765002be6676df05871e Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 15 Jul 2024 15:38:16 -0500 Subject: [PATCH] CLDR-16465 json: drop the -modern tier (by default) (#3864) --- .../main/java/org/unicode/cldr/json/Ldml2JsonConverter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/json/Ldml2JsonConverter.java b/tools/cldr-code/src/main/java/org/unicode/cldr/json/Ldml2JsonConverter.java index 3c2ab1dfe3a..0857be52332 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/json/Ldml2JsonConverter.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/json/Ldml2JsonConverter.java @@ -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 @@ -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( @@ -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");