-
Notifications
You must be signed in to change notification settings - Fork 184
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
Implement LongCurrencyFormatter
for Long Currency Formatting
#5351
Merged
Merged
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0dbd034
Create LongCurrencyFormatter
younies 852edb6
chore: Add `CurrencyPatternsDataV1` to `LongFormattedCurrency`
younies a40cf58
refactor: Update LongCurrencyFormatter constructor to accept currency…
younies 071721b
refactor: Update LongCurrencyFormatter to include plural rules in con…
younies e9c607a
refactor: Add PluralCategory conversion for Count enum in extended_cu…
younies fcf7844
Fix and implement
younies a9e6ca9
refactor: Update currency formatting to include currency code in long…
younies 58a180a
Fix doctest
younies 9ac101e
refactor: Update currency formatting to include currency code as refe…
younies a6fc125
Revert "refactor: Update currency formatting to include currency code…
younies b08407e
refactor: Update LongFormattedCurrency to use interpolated pattern in…
younies 695fd05
refactor: fix
younies 993a4e4
refactor: add a todo and panic
younies e85e959
Add comment and fix a return error
younies f57137b
Merge branch 'main' into long-currency-formatter
younies 9642f32
Merge remote-tracking branch 'upstream' into long-currency-formatter
younies 562be18
Fix comments
younies 05e805e
Merge branch 'main' into long-currency-formatter
younies File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 3 additions & 9 deletions
12
provider/data/experimental/data/currency_patterns_data_v1_marker.rs.data
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 seems to be a CLDR bug (missing
Other
), can you file an issue?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.
I have already filed this issue: #5374. I want to discuss it with @sffc today to ensure that it is a CLDR issue before filing it. If it is a CLDR issue, we need to decide what to do in the meantime. We can use the default
{0} {1}
or the pattern fromen-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.
done