-
Notifications
You must be signed in to change notification settings - Fork 155
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
should variables apply when defaultMessage is used? #8
Comments
Could you show the detail of this case? How do you use |
Hi, I wrote an example showing my usage, wasn't sure how to provide it, so I forked and added it here in examples folder #10 And there is a branch on that fork, that shows a problem I mentioned in this issue
|
Actually, variables are ignored in the case of using |
@Panoplos |
Or rather, it does in the API section, but why is the default variable tag spec different from the locale data? We have a script that automatically scrapes out defaults to build the base locale, having these be different requires us to remove the |
@Panoplos I will make this |
@cwtuan Hi, is there any progress. |
@liuyiliuyi And you could use react-intl-universal-extract |
Hi,
Not sure if it is a bug, but with my usage of extract-intl, I had a case, when the locale message was actually an empty string, so we passed this null check variables had no effect, and the defaultMessage is shown in the end with {variable} as in "locale.json".
I don't know what is a right thing to do, but it seems to me that the desired result would be to have variables inserted into defaultMessage as well.
Thanks!
The text was updated successfully, but these errors were encountered: