How to add Language to Description and others #858
Answered
by
axunonb
divinebovine
asked this question in
Q&A
-
|
RFC 5545, section 3.2.10 states that we can specify language on text values in a property or property parameter. How do we do this? |
Beta Was this translation helpful? Give feedback.
Answered by
axunonb
Sep 9, 2025
Replies: 1 comment 1 reply
-
|
Example: var evt = new CalendarEvent
{
// Don't use the property...
// Summary = "Summary",
Start = new CalDateTime(2025, 7, 14),
End = new CalDateTime(2025, 7, 15)
};
// ... but create a custom SUMMARY property which includes the LANGUAGE parameter
var summary = new CalendarProperty("SUMMARY", "Réunion du comité");
summary.AddParameter("LANGUAGE", "fr-CA"); // RFC 5646/BCP 47 language tag
evt.AddProperty(summary);
// ... serialize the calendar
// => SUMMARY;LANGUAGE=fr-CA:Réunion du comité |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
divinebovine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: