Repository navigation
Create generateTranslations script - #63220
Conversation
|
@roryabraham We are not parsing Unicode correctly to characters in translated files. Can you please look into this? |
|
I think we can treat parsing unicode as a polish. IIRC we had that for a ton of files in the hackathon project, but they displayed correctly in the UI. So, I wouldn't worry about it now and just fix it in a follow up |
|
@roryabraham One last thing, can you add the script in |
|
Also, we need to disable spellcheck temporarily since it is not ready to check for foreign languages. |
Well, how was it working for Spanish? |
|
@roryabraham Not sure tbh |
It should be set up such that you can just run it as a binary script: |
We should add this for consistency as we do this for other scripts too. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.1.67-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.67-2 🚀
|
Explanation of Change
This PR introduces a script that leverages ChatGPT to automatically translate the static strings in this app (stored in
src/languages/en.ts) into other languages.Fixed Issues
$ #62801
Tests
Added automated tests for everything. We're going to have to do our best to look through the files and see if the translations look correct-enough. The matching shape of
en.tsand the other translations files should be enforced by TypeScript type checks.Offline tests
None.
QA Steps
None for now - this is just the script, and it's fully covered by automated tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop