Skip to content

[en-GB]: missing object bytes for language en-GB #558

Closed

Description

@seedy

I got error with partial stacktrace below:

TypeError: Cannot read property 'binarySuffixes' of undefined
    at formatting.js:204
    at formatting.js:202
    at p (formatting.js:93)
    at Object.format (formatting.js:815)
    at e.value (numbro.js:40)

When looking a bit deeper, I dug this out: languages[en-GB].bytes is undefined

Screenshot

Activity

  1. seedy commented on Jul 8, 2020

    @seedy
    Author

    ℹ️ I import and register language en-GB from numbro package:

    import numbroEN from 'numbro/languages/en-GB';
    ...
    numbro.registerLanguage(numbroEN);
    
  2. BenjaminVanRyseghem commented on Jul 8, 2020

    @BenjaminVanRyseghem
    Owner

    Thanks! Indeed, it appears that those where implemented only in french (language used by the contributor) and en-US (language used by the tests).

    I will patch it so that there are default values for every languages.

  3. BenjaminVanRyseghem commented on Jul 8, 2020

    @BenjaminVanRyseghem
    Owner

    @all-contributors please add @seedy for bug

  4. allcontributors commented on Jul 8, 2020

    @allcontributors
    Contributor

    @BenjaminVanRyseghem

    I've put up a pull request to add @seedy! 🎉

  5. added a commit that references this issue on Jul 8, 2020
    873d350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions