FormatJS i18n argument parsing#1046
Merged
justin808 merged 2 commits intoshakacode:masterfrom Mar 23, 2018
sepehr500:master
Merged
FormatJS i18n argument parsing#1046justin808 merged 2 commits intoshakacode:masterfrom sepehr500:master
justin808 merged 2 commits intoshakacode:masterfrom
sepehr500:master
Conversation
Contributor
Author
|
@justin808 Have you had a chance to look at this yet? |
Member
|
@sepehr500, Did we need to do anything about:
CC: @kkak10. |
Contributor
Author
|
@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. |
Contributor
Author
|
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
|
Contributor
|
My apologizes, I moved my comment into a new issue: #1126 It would be great to have a fix today, really ! |
3 tasks
This was referenced Mar 8, 2026
This was referenced Mar 15, 2026
This was referenced Mar 24, 2026
This was referenced Mar 28, 2026
This was referenced Apr 18, 2026
This was referenced May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changed i18n parsing to convert ruby i18n argument syntax into FormatJS argument syntax to fix #1021
This change is