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

Add 'make-plural/examples' #24

Merged
merged 3 commits into from
Aug 27, 2021
Merged

Add 'make-plural/examples' #24

merged 3 commits into from
Aug 27, 2021

Conversation

eemeli
Copy link
Owner

@eemeli eemeli commented Aug 27, 2021

Previously, the example numbers for categories that the CLDR provides were only used internally to test the generated functions. With this change, they're incldued in the public API as make-plural/examples:

import { en, fr } from 'make-plural/examples'

fr.cardinal
> {
    one: [ '0', '1', '0.0', '1.0', '1.5' ],
    many: [ '1000000' ],
    other: [
      '2',        '17',
      '100',      '1000',
      '10000',    '100000',
      '2.0',      '3.5',
      '10.0',     '100.0',
      '1000.0',   '10000.0',
      '100000.0', '1000000.0'
    ]
  }

@eemeli eemeli merged commit c1f01e9 into master Aug 27, 2021
@eemeli eemeli deleted the add-examples branch August 27, 2021 06:28
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