Skip to content
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

Export narrow symbols from relevant currencies #64

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

devanandersen
Copy link
Contributor

@devanandersen devanandersen commented Nov 18, 2020

For some locales, the regular symbol pulled for currencies differs from the narrow symbol pulled for the same currencies.

The narrow symbols can be extracted from CLDR to better define currency symbols for the edge cases where the regular currency pulled from CLDR is not sufficient. If narrow-symbol isn't defined in the current locale, the user can check the parent locale for the narrow symbol, and so on up to root.xml

Changes:

  • Export narrow currency symbols for all locales.
  • Add in testing

@devanandersen devanandersen changed the title Export narrow symbols with relevant currencies Export narrow symbols from relevant currencies Nov 18, 2020
@Korri Korri self-requested a review November 18, 2020 21:44
Changes:
  - Export narrow currency symbols for all locales that define narrow symbols differently than regular symbols.
  - Add in testing

(Update changelog)
(Don't filter out narrow symbol if equal to regular symbol)
(Naming fix)
@devanandersen
Copy link
Contributor Author

devanandersen commented Nov 18, 2020

Hello @camertron ! Hoping to get your approval on the changes here, and if you agree to merge them in too since I don't have access 😄

@camertron camertron merged commit e54cca8 into ruby-i18n:master Nov 19, 2020
@camertron
Copy link
Collaborator

@devanandersen done! Would you like me to publish a new gem version as well?

@devanandersen
Copy link
Contributor Author

@camertron I would love that! Much appreciate if you are able 😄

@camertron
Copy link
Collaborator

@devanandersen just published v0.5.0 :)

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.

4 participants