-
-
Notifications
You must be signed in to change notification settings - Fork 632
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
I18n with react-Intl message in variable expression is different #1021
Comments
@kkak10 You need to provide many more details and a reproduction case in order for this report to be helpful. |
@justin808 sorry. details, I use react-on-rails with i18n. rails i18n ymlrails i18n in variable expression is
I success migrate yml file to js file In javascript react-intlintl.formatMessage({id: 'label.greeting'}, {name: 'justin808'})
// output is '%Hello justin808' How remove react-intl in '%'? |
@kkak10 if you can write a test case for this, I can look into seeing how we'd fix this. |
@justin808 where is react-on-rails with react-intl example project or github repository? |
Live at reactrails.com. https://github.com/shakacode/react-webpack-rails-tutorial |
@justin808 react-webpack-rails-tutorial project include feature i18n, but it's not include variable expression in i18n. I try react-webpack-rails-tutorial project in variable expression i18n. but occur same issue. |
@justin808 I can make a PR to fix this issue by removing |
@sepehr500 Please submit a PR with tests and a CHANGELOG entry. Can you confirm that you considered the edge cases? @kkak10 any suggestions? |
@justin808 The only edge case I can think of is if somebody actually wants to have |
I don't think the edge case that actually have @sepehr500 Thank you! This is what I wanted to do. |
@justin808 #1046 is ready for review to fix this issue. |
Rails I18n variable Expression is %{variable name}, but react-intl variable expression is {variable name}.
Help Please.
The text was updated successfully, but these errors were encountered: