Index: src/i18n.cc |
diff --git a/src/i18n.cc b/src/i18n.cc |
index b64fc17cde94a22693092a480de51f803edbacf5..3418ae79f1e095d4db7b606e72c416938cbee74e 100644 |
--- a/src/i18n.cc |
+++ b/src/i18n.cc |
@@ -157,6 +157,9 @@ void SetResolvedDateSettings(Isolate* isolate, |
// Set time zone and calendar. |
const icu::Calendar* calendar = date_format->getCalendar(); |
+ // getType() returns legacy calendar type name instead of LDML/BCP47 calendar |
+ // key values. i18n.js maps them to BCP47 values for key "ca". |
+ // TODO(jshin): Consider doing it here, instead. |
const char* calendar_name = calendar->getType(); |
JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("calendar"), |
factory->NewStringFromAsciiChecked(calendar_name), |