From 01d1f583b818b78de378f8f309c05faf412455c1 Mon Sep 17 00:00:00 2001 From: Ulas Date: Mon, 13 Apr 2026 09:22:42 +0200 Subject: [PATCH] feat: add CNY (Chinese Yuan) to supported currencies (#42) --- CHANGELOG.md | 5 +++++ public/pages/settings.js | 2 +- server/routes/preferences.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71a8db6..c3cce93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.16.2] - 2026-04-13 + +### Added +- Budget: CNY (Chinese Yuan) added to the list of selectable currencies in Settings (#42) + ## [0.16.1] - 2026-04-13 ### Fixed diff --git a/public/pages/settings.js b/public/pages/settings.js index 8560c26..ffe0924 100644 --- a/public/pages/settings.js +++ b/public/pages/settings.js @@ -10,7 +10,7 @@ import { t, formatDate, formatTime } from '/i18n.js'; import { esc } from '/utils/html.js'; import '/components/oikos-locale-picker.js'; -const SUPPORTED_CURRENCIES = ['AUD', 'CAD', 'CHF', 'CZK', 'DKK', 'EUR', 'GBP', 'HUF', 'JPY', 'NOK', 'PLN', 'SEK', 'USD']; +const SUPPORTED_CURRENCIES = ['AUD', 'CAD', 'CHF', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP', 'HUF', 'JPY', 'NOK', 'PLN', 'SEK', 'USD']; const SETTINGS_TAB_KEY = 'oikos:settings:tab'; function buildCurrencyOptions(selected) { diff --git a/server/routes/preferences.js b/server/routes/preferences.js index 248ed4d..fa51620 100644 --- a/server/routes/preferences.js +++ b/server/routes/preferences.js @@ -15,7 +15,7 @@ const router = express.Router(); const VALID_MEAL_TYPES = ['breakfast', 'lunch', 'dinner', 'snack']; const DEFAULT_MEAL_TYPES = VALID_MEAL_TYPES.join(','); -const VALID_CURRENCIES = ['EUR', 'USD', 'GBP', 'SEK', 'NOK', 'DKK', 'CHF', 'PLN', 'CZK', 'HUF', 'JPY', 'AUD', 'CAD']; +const VALID_CURRENCIES = ['EUR', 'USD', 'GBP', 'SEK', 'NOK', 'DKK', 'CHF', 'CNY', 'PLN', 'CZK', 'HUF', 'JPY', 'AUD', 'CAD']; const DEFAULT_CURRENCY = 'EUR'; // --------------------------------------------------------