-
Notifications
You must be signed in to change notification settings - Fork 126
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
Japanese text was overwritten by default text in code at pushing bundle #449
Comments
Hi Shumpei Yamada Thank you for pointing this out. This is a problem that is already on our radar and we have a PR that will be merged shortly that will stop this kind of error from happening. The change is essentially locking down the locale used in the compile and extract scripts in the package.json file like below:
The reason why this makes sense is because the default locale in this sense is the locale in which the code's "default messages" are written in. In the future we are going to look into being able to generate projects with defaultMessages in the users selected locale. If you have any more questions please let me know. Ben |
@bendvc |
This is a long PR that is implementing multi-site support for the retail react app. I've linked the file directly were we are fixing the scripts that previously result in having a translation file with the wrong language in it (if you are to change you default locale). We are currently working on releasing this code. So keep an eye out. |
Is your feature request related to a problem? Please describe.
When I use Japanese text as default in package.json and try to push with command
npm run push
, whole ja-JP.json text was overwritten by default text in code.Describe the solution you'd like
Removing
formatjs extract
when pushing. or merge existing json and text in code.The text was updated successfully, but these errors were encountered: