Skip to content

Conversation

@jordydejong
Copy link
Contributor

I've added an export to the Format interface, I would like to be able to import and use it in my code

@BenjaminVanRyseghem
Copy link
Owner

sure 😄

Just out of curiosity, could you tell me a bit about your project? 😄

@BenjaminVanRyseghem BenjaminVanRyseghem merged commit ba51102 into BenjaminVanRyseghem:develop Mar 30, 2018
@jordydejong
Copy link
Contributor Author

I'm creating a wrapper component around numbro, which reads the locale from a react-18next instance

something like

numbro.setLanguage(this.props.i18n.language)
return <span>{numbro(this.props.value).format(this.props.format)}</span>

@BenjaminVanRyseghem
Copy link
Owner

in numbro 2.1.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.

2 participants