[PR #5167] [MERGED] feat(currency): add currency setting and format #5792

Closed
opened 2026-02-28 21:18:43 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5167
Author: @misu-dev
Created: 6/14/2025
Status: Merged
Merged: 7/4/2025
Merged by: @MatissJanis

Base: masterHead: feat/currency-add-setting-and-format


📝 Commits (4)

📊 Changes

16 files changed (+522 additions, -87 deletions)

View changed files

📝 packages/desktop-client/src/components/budget/envelope/EnvelopeBudgetComponents.tsx (+1 -1)
packages/desktop-client/src/components/settings/Currency.tsx (+147 -0)
📝 packages/desktop-client/src/components/settings/Experimental.tsx (+6 -0)
📝 packages/desktop-client/src/components/settings/Format.tsx (+1 -17)
📝 packages/desktop-client/src/components/settings/Themes.tsx (+1 -17)
📝 packages/desktop-client/src/components/settings/UI.tsx (+26 -0)
📝 packages/desktop-client/src/components/settings/index.tsx (+12 -0)
📝 packages/desktop-client/src/components/spreadsheet/CellValue.tsx (+6 -1)
📝 packages/desktop-client/src/components/util/PercentInput.tsx (+3 -1)
📝 packages/desktop-client/src/hooks/useFeatureFlag.ts (+1 -0)
📝 packages/desktop-client/src/hooks/useFormat.ts (+233 -35)
📝 packages/loot-core/src/shared/arithmetic.ts (+1 -1)
packages/loot-core/src/shared/currencies.ts (+29 -0)
📝 packages/loot-core/src/shared/util.ts (+44 -13)
📝 packages/loot-core/src/types/prefs.ts (+5 -1)
upcoming-release-notes/5167.md (+6 -0)

📄 Description

This PR introduces the currency setting and the display in the useFormat hook.
I put the currency select into an experimental feature. For now I disabled YEN as currency, as this will not work at the current state (later PRs will fix this).

This is a part of multiple PRs to start intoducing a currency to the budget-file and display it.
The full implementation can be seen here: https://github.com/actualbudget/actual/pull/4890


🔄 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/5167 **Author:** [@misu-dev](https://github.com/misu-dev) **Created:** 6/14/2025 **Status:** ✅ Merged **Merged:** 7/4/2025 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `feat/currency-add-setting-and-format` --- ### 📝 Commits (4) - [`978388f`](https://github.com/actualbudget/actual/commit/978388f65e7da5b7fd84d37abd85ab93b7a2b6af) feat(format): add currency setting and format - [`0b50e31`](https://github.com/actualbudget/actual/commit/0b50e313061bc1dd2c734909e3dc9bd97ca79ff9) fix: ai comments - [`c2345eb`](https://github.com/actualbudget/actual/commit/c2345ebcf92ef305781f519d8838be83311abb36) feat: review comments - [`d252087`](https://github.com/actualbudget/actual/commit/d252087a20ea27f6013e67833c552265018d1f6e) fix: line break ### 📊 Changes **16 files changed** (+522 additions, -87 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/budget/envelope/EnvelopeBudgetComponents.tsx` (+1 -1) ➕ `packages/desktop-client/src/components/settings/Currency.tsx` (+147 -0) 📝 `packages/desktop-client/src/components/settings/Experimental.tsx` (+6 -0) 📝 `packages/desktop-client/src/components/settings/Format.tsx` (+1 -17) 📝 `packages/desktop-client/src/components/settings/Themes.tsx` (+1 -17) 📝 `packages/desktop-client/src/components/settings/UI.tsx` (+26 -0) 📝 `packages/desktop-client/src/components/settings/index.tsx` (+12 -0) 📝 `packages/desktop-client/src/components/spreadsheet/CellValue.tsx` (+6 -1) 📝 `packages/desktop-client/src/components/util/PercentInput.tsx` (+3 -1) 📝 `packages/desktop-client/src/hooks/useFeatureFlag.ts` (+1 -0) 📝 `packages/desktop-client/src/hooks/useFormat.ts` (+233 -35) 📝 `packages/loot-core/src/shared/arithmetic.ts` (+1 -1) ➕ `packages/loot-core/src/shared/currencies.ts` (+29 -0) 📝 `packages/loot-core/src/shared/util.ts` (+44 -13) 📝 `packages/loot-core/src/types/prefs.ts` (+5 -1) ➕ `upcoming-release-notes/5167.md` (+6 -0) </details> ### 📄 Description This PR introduces the currency setting and the display in the useFormat hook. I put the currency select into an experimental feature. For now I disabled YEN as currency, as this will not work at the current state (later PRs will fix this). This is a part of multiple PRs to start intoducing a currency to the budget-file and display it. The full implementation can be seen here: https://github.com/actualbudget/actual/pull/4890 --- <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 21:18:43 -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#5792