-
Notifications
You must be signed in to change notification settings - Fork 255
chore: Enhance documentation for currency data structures #7424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
9e8dce4 to
0d17b9a
Compare
| /// Provides currency compact data for short currency formatting. | ||
| /// | ||
| /// For example, "1000 US dollars" becomes "1k USD" in en-US. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this gives an example of the operation that this data is used for, but doesn't really explain the data. what are we storing?
| /// Provides currency compact data for short currency formatting. | |
| /// | |
| /// For example, "1000 US dollars" becomes "1k USD" in en-US. | |
| /// Compact plural patterns for use in currency formatting | |
| /// | |
| /// This data is not currency-specific. |
|
|
||
| icu_provider::data_marker!( | ||
| /// Essential currency data needed for currency formatting. For example, currency patterns. | ||
| /// Provides essential currency data needed for currency formatting. For example, currency patterns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: compact currency patterns are currency patterns, but they are in a different data marker. be more specific
also add if this is keyed by currency or only by locale
|
|
||
| icu_provider::data_marker!( | ||
| /// Extended currency data needed for currency formatting. For example, currency display names. | ||
| /// Provides extended currency data needed for long / full name currency formatting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"extended" doesn't explain anything, it's a classification that you came up with.
| /// Provides extended currency data needed for long / full name currency formatting. | |
| /// Provides plural display names for currencies. | |
| /// | |
| /// This data is keyed by both locale and currency, with a currency code marker attribute. |
|
|
||
| icu_provider::data_marker!( | ||
| /// `CurrencyPatternsDataV1` | ||
| /// Provides currency patterns information for currency formatting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Provides currency patterns information for currency formatting. | |
| /// Provides plural currency glue patterns to merge values and display names. |
…yname.rs Co-authored-by: Robert Bastian <[email protected]>
No description provided.