Skip to content

feat(usage): add THB display currency - #9966

Merged
farion1231 merged 1 commit into
farion1231:mainfrom
awakenginexe:feat/thb-currency
Nov 30, 2026
Merged

farion1231 merged 1 commit into
farion1231:mainfrom
awakenginexe:feat/thb-currency

Conversation

@awakenginexe

Copy link
Copy Markdown
Contributor

Human Note / 本人说明

I wanna have app can display THB currency. I tested it and it worked.

Summary / 概述

Adds THB (Thai Baht, ฿) to the usage display currencies, following the same pattern as KRW in #8794:

  • exchange_rates.rs: add THB to TARGET_CURRENCIES, so the automatic daily rate includes it
  • format.ts: add THB to DISPLAY_CURRENCIES, the ฿ symbol, and a fallback rate of 33.5 (Federal Reserve H.10, 2026-11-06)
  • backendConstants.json: regenerated with CC_SWITCH_UPDATE_GOLDEN=1
  • Tests: THB added to the currency dropdown test, plus a baht conversion/formatting test

Related Issue / 关联 Issue

Fixes #9958

Screenshots / 截图

Before / 修改前 After / 修改后
image image

Checklist / 检查清单

  • pnpm typecheck passes / 通过 TypeScript 类型检查
  • pnpm format:check passes / 通过代码格式检查
  • cargo clippy passes (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码)
  • Updated i18n files if user-facing text changed (not needed, the dropdown shows the currency code, no new text)

Copilot AI balanced review requested due to automatic review settings November 25, 2026 07:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added frontend Frontend (React/TypeScript) backend Backend (Rust/Tauri) labels Nov 25, 2026
@farion1231

Copy link
Copy Markdown
Owner

Thanks @awakenginexe for adding THB! It follows the KRW pattern exactly, and the tests made it an easy review. Merged — it'll ship in the next release.

@farion1231
farion1231 merged commit f625bd4 into farion1231:main Nov 30, 2026
2 checks passed
@funkpopo funkpopo mentioned this pull request Dec 4, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend (Rust/Tauri) frontend Frontend (React/TypeScript)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add THB (Thai Baht) as a display currency

3 participants