Skip to content

reworked spacer logic according to ISO 80000-1:2022#76

Open
andreas-denk-maibornwolff wants to merge 3 commits intodesktop-dart:masterfrom
andreas-denk-maibornwolff:patch-1
Open

reworked spacer logic according to ISO 80000-1:2022#76
andreas-denk-maibornwolff wants to merge 3 commits intodesktop-dart:masterfrom
andreas-denk-maibornwolff:patch-1

Conversation

@andreas-denk-maibornwolff

No description provided.

according to ISO 80000-1:2022, even abbreviated units have a non-breaking space
- Simplify spacer logic in prettyDuration function using ternary operators
- Add abbreviatedSpacer property to DurationLocale base class and all locale implementations
- Change default spacer from regular space to non-breaking space (\u{00A0})
- Update all test expectations to use non-breaking space character
- Add new English US locale implementation
Alphabetized part imports and locale constant declarations to improve code organization and maintainability. This change makes it easier to locate specific locales and ensures consistent ordering throughout the codebase.
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.

1 participant