[PR #205] [CLOSED] Add internationalisation framework #3053

Closed
opened 2026-02-28 20:35:38 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/205
Author: @TomAFrench
Created: 8/24/2022
Status: Closed

Base: masterHead: i18n


📝 Commits (10+)

  • fd0d30c feat: add skeleton of i18n framework
  • 9b3dbd1 #199 Adding some translation to check if im doing right
  • dd9d32a fix: ensure that translation keys match
  • 2d025d8 fix: get bold tags to display correctly
  • 43740f1 Merge branch 'master' into i18n
  • 5c56370 feat: prevent translation keys which don't exist in locale files
  • a4fe219 feat: fallback to english rather than showing translation key
  • 1fd3234 ci: correct i18n job name
  • b0f0c4a ci: fix workspace name in i18n job
  • 304a384 style: format json with 2 space indents

📊 Changes

43 files changed (+1926 additions, -411 deletions)

View changed files

.github/workflows/i18n.yml (+18 -0)
📝 packages/desktop-client/.gitignore (+3 -0)
packages/desktop-client/i18next-parser.config.js (+16 -0)
📝 packages/desktop-client/package.json (+5 -1)
📝 packages/desktop-client/src/components/accounts/Account.js (+109 -67)
📝 packages/desktop-client/src/components/accounts/Filters.js (+14 -9)
📝 packages/desktop-client/src/components/accounts/SimpleTransactionsTable.js (+9 -7)
📝 packages/desktop-client/src/components/accounts/TransactionsTable.js (+36 -24)
📝 packages/desktop-client/src/components/budget/MonthCountSelector.js (+3 -1)
📝 packages/desktop-client/src/components/budget/index.js (+1 -1)
📝 packages/desktop-client/src/components/manager/subscribe/Bootstrap.js (+10 -7)
📝 packages/desktop-client/src/components/manager/subscribe/ChangePassword.js (+9 -8)
📝 packages/desktop-client/src/components/modals/EditRule.js (+19 -17)
📝 packages/desktop-client/src/components/modals/ManageRules.js (+3 -1)
📝 packages/desktop-client/src/components/reports/CashFlow.js (+1 -1)
📝 packages/desktop-client/src/components/reports/NetWorth.js (+1 -1)
📝 packages/desktop-client/src/components/schedules/DiscoverSchedules.js (+21 -22)
📝 packages/desktop-client/src/components/schedules/EditSchedule.js (+45 -28)
📝 packages/desktop-client/src/components/schedules/SchedulesTable.js (+25 -16)
📝 packages/desktop-client/src/components/schedules/StatusBadge.js (+15 -4)

...and 23 more files

📄 Description

There's been some interest in adding translations for languages other than english here: https://github.com/actualbudget/actual/discussions/199

I can't really work on this myself personally due time + language knowledge constraints but I'm leaving this PR open so that anyone can contribute translations to be merged into this PR and once we have more coverage then we can work on getting it merged into master (we'll need to add the ability to set the language in the UI, etc.).

For the time being you can choose which language to display by setting the lng flag in src/locales/index.js. We currently have very barebones i18n files which only handle a couple of strings on the bootstrapping page.

These files need to be filled out and new ones created for any languages we want to support. To use these these translations, all the components in the app need to be updated in a similar fashion to the Bootstrap component (please use that component as a guide).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/205 **Author:** [@TomAFrench](https://github.com/TomAFrench) **Created:** 8/24/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `i18n` --- ### 📝 Commits (10+) - [`fd0d30c`](https://github.com/actualbudget/actual/commit/fd0d30c07c8dcdc4065f2d6c63e93d3b0d22630d) feat: add skeleton of i18n framework - [`9b3dbd1`](https://github.com/actualbudget/actual/commit/9b3dbd187ff8859302f49c9a176c9b5d40343ab1) #199 Adding some translation to check if im doing right - [`dd9d32a`](https://github.com/actualbudget/actual/commit/dd9d32a6ed6a97df6dfa7fb33b7577de876398f3) fix: ensure that translation keys match - [`2d025d8`](https://github.com/actualbudget/actual/commit/2d025d8b0850cf2204de861feee30ef59067d69e) fix: get bold tags to display correctly - [`43740f1`](https://github.com/actualbudget/actual/commit/43740f18f19b2787b46d5a796703ce27a49f42b9) Merge branch 'master' into i18n - [`5c56370`](https://github.com/actualbudget/actual/commit/5c56370920926177b2f53aa33c9309ac25cd8845) feat: prevent translation keys which don't exist in locale files - [`a4fe219`](https://github.com/actualbudget/actual/commit/a4fe21927d61d506ea68517c5bed1ac5901e3b9b) feat: fallback to english rather than showing translation key - [`1fd3234`](https://github.com/actualbudget/actual/commit/1fd32346131c1e7f12db22dfd2ef9e66df112428) ci: correct i18n job name - [`b0f0c4a`](https://github.com/actualbudget/actual/commit/b0f0c4a71d3e009d68e9ff82e70bfa9cf2b6f2c8) ci: fix workspace name in i18n job - [`304a384`](https://github.com/actualbudget/actual/commit/304a384b6c23dacd2ead55a2174910adc26c4771) style: format json with 2 space indents ### 📊 Changes **43 files changed** (+1926 additions, -411 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/i18n.yml` (+18 -0) 📝 `packages/desktop-client/.gitignore` (+3 -0) ➕ `packages/desktop-client/i18next-parser.config.js` (+16 -0) 📝 `packages/desktop-client/package.json` (+5 -1) 📝 `packages/desktop-client/src/components/accounts/Account.js` (+109 -67) 📝 `packages/desktop-client/src/components/accounts/Filters.js` (+14 -9) 📝 `packages/desktop-client/src/components/accounts/SimpleTransactionsTable.js` (+9 -7) 📝 `packages/desktop-client/src/components/accounts/TransactionsTable.js` (+36 -24) 📝 `packages/desktop-client/src/components/budget/MonthCountSelector.js` (+3 -1) 📝 `packages/desktop-client/src/components/budget/index.js` (+1 -1) 📝 `packages/desktop-client/src/components/manager/subscribe/Bootstrap.js` (+10 -7) 📝 `packages/desktop-client/src/components/manager/subscribe/ChangePassword.js` (+9 -8) 📝 `packages/desktop-client/src/components/modals/EditRule.js` (+19 -17) 📝 `packages/desktop-client/src/components/modals/ManageRules.js` (+3 -1) 📝 `packages/desktop-client/src/components/reports/CashFlow.js` (+1 -1) 📝 `packages/desktop-client/src/components/reports/NetWorth.js` (+1 -1) 📝 `packages/desktop-client/src/components/schedules/DiscoverSchedules.js` (+21 -22) 📝 `packages/desktop-client/src/components/schedules/EditSchedule.js` (+45 -28) 📝 `packages/desktop-client/src/components/schedules/SchedulesTable.js` (+25 -16) 📝 `packages/desktop-client/src/components/schedules/StatusBadge.js` (+15 -4) _...and 23 more files_ </details> ### 📄 Description There's been some interest in adding translations for languages other than english here: https://github.com/actualbudget/actual/discussions/199 I can't really work on this myself personally due time + language knowledge constraints but I'm leaving this PR open so that anyone can contribute translations to be merged into this PR and once we have more coverage then we can work on getting it merged into master (we'll need to add the ability to set the language in the UI, etc.). For the time being you can choose which language to display by setting the `lng` flag in `src/locales/index.js`. We currently have very barebones i18n files which only handle a couple of strings on the bootstrapping page. These files need to be filled out and new ones created for any languages we want to support. To use these these translations, all the components in the app need to be updated in a similar fashion to the `Bootstrap` component (please use that component as a guide). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:35:38 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#3053