[PR #2982] [MERGED] Add apostrophe dot format #23231

Closed
opened 2026-04-16 17:20:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2982
Author: @julianwachholz
Created: 7/4/2024
Status: Merged
Merged: 7/9/2024
Merged by: @MatissJanis

Base: masterHead: add-apostrophe-dot-format


📝 Commits (1)

  • f1ead01 Add apostrophe-dot number format

📊 Changes

5 files changed (+33 additions, -2 deletions)

View changed files

📝 packages/loot-core/src/shared/arithmetic.test.ts (+3 -0)
📝 packages/loot-core/src/shared/arithmetic.ts (+1 -1)
📝 packages/loot-core/src/shared/util.test.ts (+10 -0)
📝 packages/loot-core/src/shared/util.ts (+13 -1)
upcoming-release-notes/2982.md (+6 -0)

📄 Description

Adds a Swiss style number format option.

The Intl.NumberFormat API formats de de-CH locale using a fancy apostrophe (U+2019):

> Intl.NumberFormat('de-CH').format(1200.33)
< "1’200.33" 

This PR is based on #2981


🔄 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/2982 **Author:** [@julianwachholz](https://github.com/julianwachholz) **Created:** 7/4/2024 **Status:** ✅ Merged **Merged:** 7/9/2024 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `add-apostrophe-dot-format` --- ### 📝 Commits (1) - [`f1ead01`](https://github.com/actualbudget/actual/commit/f1ead016da4b846c1bfaae7e575b4c809330b031) Add apostrophe-dot number format ### 📊 Changes **5 files changed** (+33 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/shared/arithmetic.test.ts` (+3 -0) 📝 `packages/loot-core/src/shared/arithmetic.ts` (+1 -1) 📝 `packages/loot-core/src/shared/util.test.ts` (+10 -0) 📝 `packages/loot-core/src/shared/util.ts` (+13 -1) ➕ `upcoming-release-notes/2982.md` (+6 -0) </details> ### 📄 Description Adds a Swiss style number format option. The Intl.NumberFormat API formats de `de-CH` locale using a fancy apostrophe (U+2019): ``` > Intl.NumberFormat('de-CH').format(1200.33) < "1’200.33" ``` This PR is based on #2981 --- <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-04-16 17:20:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#23231