Skip to content

Conversation

caybro
Copy link
Member

@caybro caybro commented Sep 11, 2025

What does the PR do

  • create dedicated Makefile targets: update-translations and compile-translations that extract/update/merge and compile the TS files respectively
  • these targets can then later be invoked externally by CI automation
  • provide a small manual Python script that transforms the empty qml_base_en.ts into a pre-filled qml_base_lokalise_en.ts for the purpose of AI enabled translations on Lokalise
  • add a sample Czech translation to test the changes (to be finished later separately)
  • update the i18n README

Fixes #18820

Affected areas

Makefile

Architecture compliance

Screencapture of the functionality

image

Impact on end user

UI is translated :)

How to test

  • enable translations in Settings/Country
  • restart app

Risk

  • low

@caybro caybro requested review from a team as code owners September 11, 2025 13:59
@caybro caybro requested review from iurimatias and removed request for a team September 11, 2025 13:59
@caybro caybro linked an issue Sep 11, 2025 that may be closed by this pull request
@status-im-auto
Copy link
Member

status-im-auto commented Sep 11, 2025

Jenkins Builds

Click to see older builds (34)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 0041484 #1 2025-09-11 14:06:30 ~7 min android/arm64 🤖apk 📲
✔️ 0041484 #1 2025-09-11 14:09:07 ~9 min tests/nim 📄log
✔️ 0041484 #1 2025-09-11 14:13:34 ~14 min macos/aarch64 🍎dmg
✔️ 0041484 #1 2025-09-11 14:16:52 ~17 min tests/ui 📄log
✔️ 0041484 #1 2025-09-11 14:17:29 ~18 min linux/x86_64 📦tgz
0041484 #1 2025-09-11 14:18:40 ~19 min windows/x86_64 📄log
✔️ 0041484 #1 2025-09-11 14:20:24 ~20 min macos/aarch64-nwaku 🍎dmg
✔️ 0041484 #1 2025-09-11 14:24:28 ~25 min linux/x86_64-nwaku 📦tgz
✔️ 0041484 pr18821 2025-09-11 14:32:19 ~14 min tests/e2e 📊rpt
0041484 #2 2025-09-11 15:55:57 ~20 min windows/x86_64 📄log
✔️ 6efb898f #2 2025-09-11 17:22:33 ~4 min android/arm64 🤖apk 📲
✔️ 3c4c70b #2 2025-09-11 17:24:15 ~6 min tests/nim 📄log
✔️ 3c4c70b #2 2025-09-11 17:30:44 ~12 min linux/x86_64 📦tgz
✔️ 3c4c70b #2 2025-09-11 17:32:15 ~14 min macos/aarch64 🍎dmg
3c4c70b #3 2025-09-11 17:33:46 ~15 min windows/x86_64 📄log
✔️ 3c4c70b #2 2025-09-11 17:34:06 ~15 min macos/aarch64-nwaku 🍎dmg
✔️ 3c4c70b pr18821 2025-09-11 17:44:06 ~13 min tests/e2e 📊rpt
✔️ f99d6760 #3 2025-09-11 17:40:58 ~4 min android/arm64 🤖apk 📲
✔️ 3842f30 #3 2025-09-11 17:46:56 ~10 min macos/aarch64 🍎dmg
✔️ 3842f30 #3 2025-09-11 17:47:01 ~10 min tests/nim 📄log
✔️ 3842f30 #3 2025-09-11 17:51:41 ~15 min macos/aarch64-nwaku 🍎dmg
✔️ 3842f30 #3 2025-09-11 17:52:57 ~16 min linux/x86_64 📦tgz
✔️ 3842f30 #3 2025-09-11 17:57:11 ~21 min tests/ui 📄log
✔️ 3842f30 #4 2025-09-11 17:58:25 ~22 min windows/x86_64 💿exe
✔️ 3842f30 #3 2025-09-11 17:58:57 ~22 min linux/x86_64-nwaku 📦tgz
✔️ 3842f30 pr18821 2025-09-11 18:06:08 ~13 min tests/e2e 📊rpt
✔️ 8fd8e7aa #4 2025-09-12 08:47:25 ~2 min android/arm64 🤖apk 📲
✔️ e69179f #5 2025-09-15 15:59:44 ~6 min tests/nim 📄log
✔️ e69179f #8 2025-09-15 16:00:40 ~4 min android/arm64 🤖apk 📲
✔️ e69179f #5 2025-09-15 16:05:57 ~12 min tests/ui 📄log
✔️ e69179f #6 2025-09-15 16:09:30 ~13 min macos/aarch64 🍎dmg
✔️ e69179f #5 2025-09-15 16:13:54 ~20 min macos/aarch64-nwaku 🍎dmg
✔️ e69179f #6 2025-09-15 16:27:24 ~33 min windows/x86_64 💿exe
✔️ 059e692a #9 2025-09-15 20:49:24 ~3 min android/arm64 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ fc89e9f #6 2025-09-15 20:53:37 ~7 min tests/nim 📄log
✔️ fc89e9f #7 2025-09-15 20:58:17 ~11 min macos/aarch64 🍎dmg
✔️ fc89e9f #6 2025-09-15 20:59:17 ~12 min tests/ui 📄log
✔️ fc89e9f #7 2025-09-15 21:00:54 ~14 min linux/x86_64 📦tgz
✔️ fc89e9f #6 2025-09-15 21:03:21 ~16 min macos/aarch64-nwaku 🍎dmg
✔️ fc89e9f #7 2025-09-15 21:08:16 ~21 min linux/x86_64-nwaku 📦tgz
✔️ fc89e9f pr18821 2025-09-15 21:13:48 ~12 min tests/e2e 📊rpt
✔️ fc89e9f #7 2025-09-15 21:22:26 ~35 min windows/x86_64 💿exe
✔️ 0e5b8bea #10 2025-09-16 09:18:50 ~3 min android/arm64 🤖apk 📲

@caybro caybro requested review from jrainville, micieslak and alexjba and removed request for iurimatias September 11, 2025 14:14
@caybro caybro force-pushed the 18820-i18n-update-makefile branch 2 times, most recently from 3c4c70b to 3842f30 Compare September 11, 2025 17:35
@caybro caybro requested a review from osmaczko September 12, 2025 08:42
@caybro caybro force-pushed the 18820-i18n-update-makefile branch 2 times, most recently from 9afa7ef to e69179f Compare September 15, 2025 15:53
- create dedicated Makefile targets: `update-translations` and
`compile-translations` that extract/update/merge and compile the TS
files respectively
- these targets can then later be invoked externally by CI automation
- provide a small manual Python script that transforms the empty
`qml_base_en.ts` into a pre-filled `qml_base_lokalise_en.ts` for the
purpose of AI enabled translations on Lokalise
- add a sample Czech translation to test the changes (to be finished
later separately)
- update the i18n README

Fixes #18820
@caybro caybro force-pushed the 18820-i18n-update-makefile branch from e69179f to fc89e9f Compare September 15, 2025 20:46
@sunleos sunleos self-requested a review September 15, 2025 20:53
"ar": Description(name: "Arabic", native: "العربية", flag: "", state: State.Alpha),
"bn": Description(name: "Bengali", native: "বাংলা", flag: "X", state: State.Alpha),
"bn": Description(name: "Bengali", native: "বাংলা", flag: "X", state: State.Alpha),
"cs": Description(name: "Czech", native: "čeština", flag: "🇨🇿", state: State.Alpha),
Copy link
Member Author

@caybro caybro Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this should be done on the fly, and not hardcoded here. Will be tackled in a separate issue #18330

update-translations: | log-update-translations
cmake -S $(TS_SOURCE_DIR) -B $(TS_BUILD_DIR) -Wno-dev $(HANDLE_OUTPUT)
cmake --build $(TS_BUILD_DIR) --target update_application_translations $(HANDLE_OUTPUT)
# + cd scripts/translationScripts && ./fixup-base-ts-for-lokalise.py $(HANDLE_OUTPUT)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a manual step (for now) as it requires Python; no change here. We probably don't want or need this to be run everywhere (mac, Windows), can be done only on CI

Copy link
Collaborator

@sunleos sunleos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this version of qm_base_loalise_en.ts since I tested it with Lolakise, and it works well with it, hence, approving this PR from my end.

@caybro
Copy link
Member Author

caybro commented Sep 15, 2025

@osmaczko @jrainville kind reminder for a review; don't get scared by this of the PR, the code changes are fairly minimal; tested by Volo on Lokalise, and me in the app

@caybro caybro merged commit 567c31f into master Sep 16, 2025
10 checks passed
@caybro caybro deleted the 18820-i18n-update-makefile branch September 16, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[i18n] Update Makefile to extract/merge/compile TS files automatically
4 participants