Skip to content

Commit 70d7990

Browse files
authored
CLDR-18573 Fix notification for unrecognized locale ID (#4751)
1 parent 541bdf7 commit 70d7990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cldr-apps/js/src/esm/cldrLocales.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function notifyUnusableLocale(map, loc) {
120120
// Exclude String objects and other objects and types, to avoid confusion.
121121
explanation = cldrText.get("locale_id_not_string_primitive");
122122
} else if (LOCALE_REGEX.test(loc)) {
123-
explanation = cldrText.sub("locale_id_unrecognized", loc);
123+
explanation = cldrText.sub("locale_id_unrecognized", [loc]);
124124
} else {
125125
// Avoid including the bogus locale ID in the notification if it contains non-ASCII
126126
// characters or reserved punctuation marks, since it may be URL-encoded or

0 commit comments

Comments
 (0)