Skip to content

currency: Move experimental currency formatting to legacy#8067

Open
younies wants to merge 2 commits into
unicode-org:mainfrom
younies:move-currency-to-legacy
Open

currency: Move experimental currency formatting to legacy#8067
younies wants to merge 2 commits into
unicode-org:mainfrom
younies:move-currency-to-legacy

Conversation

@younies

@younies younies commented Jun 11, 2026

Copy link
Copy Markdown
Member

Changelog

This PR moves the existing experimental currency formatting implementation to a legacy subdirectory/module. This is in preparation for a new implementation based on the design at https://hackmd.io/@younies/number_formatter_4x.

Changes:

  • Moved all files (except mod.rs) from components/experimental/src/dimension/currency to a new legacy subdirectory.
  • Added a TODO comment to each moved file indicating it is legacy code to be removed.
  • Refactored name_and_pattern out of essentials.rs into legacy/mod.rs to ensure that data provider structs do not depend on legacy code.
  • Updated imports and module structure accordingly.

Moving everything except mod.rs from currency to currency/legacy. Moved name_and_pattern from essentials.rs to legacy/mod.rs to avoid essentials depending on legacy code. Added TODO to each legacy file.
@younies younies requested a review from robertbastian June 11, 2026 15:08

@robertbastian robertbastian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is necessary, I believe the current code can be transformed into the new design fairly easily without rewriting it from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants