-
Notifications
You must be signed in to change notification settings - Fork 378
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
React native development cause ttext ${interpolated} example
to return function instead of string
#1042
Comments
Hi @semoal, I hope you add a good weekend. Did you have a thought on that one? Our v3 migration added some complexity to our devs, as in this commit pass-culture/pass-culture-app-native@dba46af . We finally decided to switch to this syntax : pass-culture/pass-culture-app-native#925 so we can keep using v3, but the new syntax is really verbose. I would love to know if you have a plan to work on it soon. I myself, have no clue where and how to fix this but I am of course available to assist. |
Actually I'm really busy with my current job and other noise I have around me, once I find time I'll work on this issue and I'll create a pr on your repository doing it simple another time. Sorry for the inconveniences but OSS doesn't give me enough to focus on every issue all my entire time |
I think Dimitri that I have found the issue of this, #1059 I'll ping you the next tuesday and give it a try with the other syntax to see if the issue has gone =) Hope this is a further step for making it easier to you guys |
Hi @semoal , I hope you are good. Sorry I forgot to reply but I read you. I am glad that you are fixing this issue because it's kind of annoying having to explain those bugs to others. We are currently deploying the app to production, I presume we can take care of testing the next version starting next week if you have solved it by then. Otherwise, let me know how we can help, |
Released 3.9.0 give it a try when you can, but i'm pretty sure that will fixed :) |
Hi @semoal , I was going to write to you a message. Thanks for meanwhile taking care of fixing the issue. We were supposed to go prod today, unfortunately this is what we got in production (with the old version): We're done for today, but we'll definitely try to upgrade to 3.9.0 and see if it fixes, otherwise we may have a long day reverting :), I'll keep you tuned. |
Hi Semoal, I just tested 3.9.0, we still have the sames string not being displayed with the function error in development. Seems not fixed. |
Following #1022, I have created two separate bug identified in v3.
Describe the bug
In a React Native application, we use metro and target iOS, Android and web.
Within our development environment (this bug is not happening within our production build), we often have issue with template literral not interpolating string and returning function, this cause warning everywhere in our application and missing text.
On Android Galaxy S9
On iPhone 6, it cause application crash
To Reproduce
This is how we integrated the issue: pass-culture/pass-culture-app-native#842
It's hard to tell since @semoal tried to bootstrap a clean react-native application to reproduce, while we migrated from v2 to v3 on an existing application
Expected behavior
We expect lingui to always translate the text as a string in the development and production build.
Additional context
Add any other context about the problem here.
3.8.9
7.8.4
The text was updated successfully, but these errors were encountered: