WIP: Add internationalization support to web client (fixes #6) #27

Draft
luca0N wants to merge 3 commits from dev_client_i18n into dev
Owner
  • Prepare i18n in HTML files
  • Prepare i18n in TypeScript files
  • Add support for pluralization in time difference strings
  • Add Angular localize references
  • Add source messages file
- [x] Prepare i18n in HTML files - [x] Prepare i18n in TypeScript files - [ ] Add support for pluralization in time difference strings - [ ] Add Angular `localize` references - [ ] Add source `messages` file
luca0N self-assigned this 2025-11-28 21:37:07 +00:00
Add the Angular localization package as a new dependency to the web
client.
Mark existing HTML tags in web client as available for translation.
luca0N force-pushed dev_client_i18n from 814d20a9ed to e189844ca5 2025-11-28 21:38:08 +00:00 Compare
luca0N force-pushed dev_client_i18n from e189844ca5 to f973e071cf 2025-11-28 21:39:57 +00:00 Compare
Author
Owner

Force-pushed twice to fix two separate instances of the canonical repository URL being replaced with the old one (https://git.luca0n.com/luca0N/knock2).

Force-pushed twice to fix two separate instances of the canonical repository URL being replaced with the old one (`https://git.luca0n.com/luca0N/knock2`).
In the host list source file, add support for Angular's `$localize'
utility.
Author
Owner

The only thing left blocking this pull request are the modified files that contain references to the Angular localize package, such as angular.json, and the extracted messages file should also be added to the repository.

2025-12-03 Edit: time difference strings do not make use of the localize plural support.

The only thing left blocking this pull request are the modified files that contain references to the Angular `localize` package, such as `angular.json`, and the extracted `messages` file should also be added to the repository. 2025-12-03 Edit: time difference strings do not make use of the `localize` plural support.
Author
Owner

The format xlf was used as it's the default file format used when extracting with the Angular command line utility.

The format `xlf` was used as it's the default file format used when extracting with the Angular command line utility.
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin dev_client_i18n:dev_client_i18n
git switch dev_client_i18n

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch dev
git merge --no-ff dev_client_i18n
git switch dev_client_i18n
git rebase dev
git switch dev
git merge --ff-only dev_client_i18n
git switch dev_client_i18n
git rebase dev
git switch dev
git merge --no-ff dev_client_i18n
git switch dev
git merge --squash dev_client_i18n
git switch dev
git merge --ff-only dev_client_i18n
git switch dev
git merge dev_client_i18n
git push origin dev
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
luca0N/lanbassador!27
No description provided.