-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
FormatJS i18n argument parsing #1046
Conversation
@justin808 Have you had a chance to look at this yet? |
@sepehr500, Did we need to do anything about:
CC: @kkak10. |
@justin808 I don't think so. @kkak10 said it was not an issue and I could not find anything about escape chars in rails documentation. |
The fix is easy. I will try to do it today.
On Wed, Aug 8, 2018, 8:48 AM Vianney Carel ***@***.***> wrote:
Hi, this PR caused a regression on my end.
In our translations we have arrays in keys like day_names, month_names
and so on. Those are for rails and I'm pretty sure we don't use them in our
react app, but they make our build crash:
14:35:31 client.1 | rake aborted!
14:35:31 client.1 | NoMethodError: undefined method `gsub' for #<Array:0x00005654df390550>
14:35:31 client.1 | /home/vianney/.rbenv/versions/2.3.6/gemsets/oneparkweb/gems/react_on_rails-11.0.10/lib/react_on_rails/locales_to_js.rb:112:in `block in flatten'
14:35:31 client.1 | /home/vianney/.rbenv/versions/2.3.6/gemsets/oneparkweb/gems/react_on_rails-11.0.10/lib/react_on_rails/locales_to_js.rb:107:in `each'
14:35:31 client.1 | /home/vianney/.rbenv/versions/2.3.6/gemsets/oneparkweb/gems/react_on_rails-11.0.10/lib/react_on_rails/locales_to_js.rb:107:in `each_with_object'
14:35:31 client.1 | /home/vianney/.rbenv/versions/2.3.6/gemsets/oneparkweb/gems/react_on_rails-11.0.10/lib/react_on_rails/locales_to_js.rb:107:in `flatten'
Don't tell me I have to split our translation files into "server only" and
"server + client" ones... 😰
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1046 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIjQp_GgtTq58cCJLJ05GvtGr8uLu-skks5uOt4KgaJpZM4SpwEC>
.
--
Thanks~Sepehr Sobhani
|
My apologizes, I moved my comment into a new issue: #1126 It would be great to have a fix today, really ! |
Changed i18n parsing to convert ruby i18n argument syntax into FormatJS argument syntax to fix #1021
This change is