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

Unable to add custom format. #19

Closed
AndriiTsarenko opened this issue Mar 27, 2020 · 3 comments
Closed

Unable to add custom format. #19

AndriiTsarenko opened this issue Mar 27, 2020 · 3 comments

Comments

@AndriiTsarenko
Copy link

I'm looking for the possibility to add default values to interpolation.
For example, I have this key: 'Hello {user}'
And user in my case is optional.
So what I want to add defaultValue formatter.
And my key should look like 'Hello {user, devaultValue, a user}'
And I didn't find out a way to add such formatter.

@jamuhl
Copy link
Member

jamuhl commented Mar 27, 2020

I'm not too deep into messageformat -> is there something like a custom formatter

@jamuhl
Copy link
Member

jamuhl commented Mar 27, 2020

What I want to say with this...if it's not supported in formatjs - it's not supported here

@AndriiTsarenko
Copy link
Author

Ok I see.

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

No branches or pull requests

2 participants