Repository navigation
fix(accounting): use translation keys for list screen titles and tooltips - #321
Merged
Aman-Mittal merged 1 commit intoAug 10, 2026
Merged
Conversation
Member
|
@yasumorishima please upload your signing key and remove claude co-authored in commit This user has not yet uploaded their public signing key. |
…tips The five accounting list screens passed English literals to `app-data-table` `title`/`createButtonLabel` and to `ion-button` `title` tooltips, so those strings stayed in English in every locale. Unlike a missing translation, a hardcoded string looks correct in the UI and is only findable by grep. Replaces all 11 sites in `src/app/features/accounting` with translation keys. Seven reuse an existing key whose English text is identical, following the established convention that a list screen title is its `nav.*` entry (45 other screens already do this). Four keys had no exact match and are added to `en.json`. No visible English text changes: every replacement key resolves to the exact string it replaced. Part of apache#251.
yasumorishima
force-pushed
the
i18n/accounting-list-screen-strings
branch
from
August 10, 2026 12:12
80688a7 to
91d2f84
Compare
Contributor
Author
|
Thanks for the review — both are done.
The amend touched the message only: the tree is unchanged at |
yasumorishima
added a commit
to yasumorishima/yasumorishima
that referenced
this pull request
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The five accounting list screens passed English literals to
app-data-table'stitle/createButtonLabelinputs and toion-buttontitletooltips, so those strings stayed in English whichever language was selected. As #251 notes, this is worse than an ordinary missing translation: a missing key renders as a visible key and diagnoses itself, whereas a hardcoded string looks correct in every locale.This replaces all 11 sites in
src/app/features/accountingwith translation keys. #251 says one PR per feature directory; accounting is the largest at 11 sites.Part of #251.
The 11 replacements
accounting-closures-listtitle="Accounting Closures"nav.accountingClosuresaccounting-closures-listcreateButtonLabel="Close Period"ACCOUNTING_CLOSURES.CREATEaccounting-closures-listtitle="Re-open Period"ACCOUNTING_CLOSURES.REOPENchart-of-accountstitle="Chart of Accounts"nav.chartOfAccountschart-of-accountscreateButtonLabel="Add Ledger Account"ACCOUNTING.ADD_LEDGER_ACCOUNTchart-of-accountstitle="Edit Account"ACCOUNTING.EDIT_ACCOUNTjournal-entries-listtitle="Journal Entries"nav.journalEntriesjournal-entries-listcreateButtonLabel="Add Journal Entry"JOURNAL_ENTRIES.CREATEfinancial-activity-mappings-listtitle="Financial Activity Mappings"nav.financialActivityMappingsfinancial-activity-mappings-listcreateButtonLabel="Define Mapping"ACCOUNTING.DEFINE_MAPPINGcharges-listtitle="Edit Charge"CHARGES.EDITNo visible English text changes. Every key resolves to the exact string it replaced, so in English this is a no-op and only the other locales change.
Two decisions worth a reviewer's eye
1. List screen titles reuse
nav.*rather than newACCOUNTING.*keys. #251 sketchedtitle="ACCOUNTING.CHART_OF_ACCOUNTS", but 45 existing list screens already pass theirnav.*entry as the data-table title (nav.groups,nav.users,nav.loanProducts, …), andnav.chartOfAccounts/nav.journalEntries/nav.accountingClosures/nav.financialActivityMappingsalready exist with byte-identical English. Reusing them follows both the issue's "reuse beats a near-duplicate" guidance and the dominant convention. Happy to switch to a new namespace if you prefer.2.
ADD_LEDGER_ACCOUNT/EDIT_ACCOUNTare new even thoughCREATE_GL_ACCOUNT/EDIT_GL_ACCOUNTexist. Those read "Create GL Account" / "Edit GL Account" and title thegl-account-formdialog these buttons open, so collapsing into them looked like the tighter catalogue. It would have broken a test:e2e/functional-coverage.spec.ts:839drives this screen withgetByRole('button', { name: /Add Ledger Account/i }). Keeping the English byte-identical is what makes this change safe. If you do want the wording unified, the e2e selector has to change in the same PR.Verification
Run on a fork of this repository at the same commit — all 18 jobs green:
Additional checks made while preparing this:
node scripts/check-translations.mjs→Checked 1485 referenced keys against 2014 keys in en.json. ✓ No missing keys.This is a real gate here, not a formality: the checker's patterns match thetitle="KEY"/createButtonLabel="KEY"attribute forms, so every key introduced above is statically validated.src/app/features/accounting.feature-coverage.spec.ts:414asserts the card title;functional-coverage.spec.ts:785/816/839click the create buttons by name) and each still matches because the keys resolve to the identical string. No unit spec undersrc/appasserts these literals.title=→[title]=bindings use| appTranslatewithTranslatePipefromsrc/app/core/adapters, perDOCS/ADAPTERS.md, and their attribute order matches existing prettier-stable elements of the same shape (groups-listL85-90,email-campaigns-listL115-119).Format Checkpassing confirmsprettieris a no-op on this diff.Screenshots
Not applicable — no visual change in English. The change is only observable by switching the language, where these strings now translate instead of staying English.
Checklist
src/app/api/.src/app/core/adapters/instead of direct browser globals or imperative third-party APIs.check-translationscovers the new keys.Unverified(GET /commits/:shareportsreason: "unknown_key", i.e. GitHub sees a valid signature it cannot attribute). Registering the key makes it verify retroactively with no rewrite of this branch, and I will do that shortly. Flagging it rather than ticking the box.