-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Request to change a localization script #748
Comments
Thanks @ngdangtu-vn! Yes, in the app, the full sentence in English is:
And the 2nd line is a link to an external website. That's why I separated this one sentence into 3 parts:
If you can find a better way to separate this sentence, while still keeping the external link, please go ahead with a PR! |
@amaurymartiny |
It's in my mind to move away from expo-localization (i18n-js), i saw some limitations, so okay to move away 👍 . How does |
If it's possible, please give me 2 days, I will do some researches about it. :) |
Thanks! 🙏 |
One thing that is clearly difference between
My conclusion is if your app has more static script (require less format, not have many words, like 'next', 'back', '404 error') then (Sorry for being late, it's internet fault) |
Thanks a lot for this overview!
I overall really prefer a simple Would you like to create a PR for this? |
Yes, I will try to implement it and create PR. |
@amaurymartiny
To this:
This means we have to upgrade the translation scripts. And I would like your opinion about how should we organize the scripts. My solution is we separate it on namespace level with 'home', 'about', 'warning', 'error', 'glossary'. Also, should I pull request right now so you could see an overview of how new translation tool works? |
Thanks! Yes, organizing the scripts with namespaces is a good idea. Is it possible to make nested namespaces? If yes, I believe the easiest way to organize namespaces is to follow the folder structure already in place: {
"components": {
"currentLocation": {
// scripts inside the CurrentLocation component
},
},
"screens": {
"about": {
// scripts inside the About screen
},
"home": {
// scripts inside the Home screen
}
}
} This seems like the most obvious way to me. Maybe you have a better idea? BTW, no worries to break the current translation files script, we can also add a small script in a future PR to convert from the old to the new.
Yes, please! |
While this is good for components namespace. Using this on
We might have more namespace as the app grows up, but it will have better performance. |
I wasn't aware of the performance hit. The way you described sounds good 👍 |
As I mentioned in here: https://poeditor.com/projects/po_edit?&id=257157&id_language=177#row-term-146048017
I would like to modify
about_how_do_you_calculate_the_number_of_cigarettes_message_2
script for a better translation purpose.Since I'm confident that I can do this. Please assign this task to me. I will submit PR in later day.
The text was updated successfully, but these errors were encountered: