From 73c6011c6001154cd54aa342ed4c974cddcd06b6 Mon Sep 17 00:00:00 2001 From: Paul Sinclair Date: Fri, 28 Jun 2019 14:42:59 -0400 Subject: [PATCH] :ambulance: Changes Currency to ISO4217 Format (#34) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :books: Update Readme to reference Currency Config * :bug: Update default currency config * 💥 Add regex to Currency schema * 🔨 Fixing Regex format --- README.md | 6 ++++-- grocy/config.json | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ad21b6b..6e3b410 100755 --- a/README.md +++ b/README.md @@ -139,8 +139,10 @@ Is used for setting the language. Choose between: ### Option: `currency` -Determines the currency as displayed in the Grocy interface. -Examples: `$`, `€`, `£` or `EUR`. +Determines the currency as displayed in the Grocy interface, specified by the +ISO4217 three digit currency code. + +Examples: `USD`, `CAD`, `GBP` or `EUR`. ### Option: `features` diff --git a/grocy/config.json b/grocy/config.json index fbcf6ee..5586d9b 100755 --- a/grocy/config.json +++ b/grocy/config.json @@ -30,7 +30,7 @@ }, "options": { "culture": "en", - "currency": "$", + "currency": "USD", "features": { "batteries": true, "calendar": true, @@ -48,7 +48,7 @@ "schema": { "log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?", "culture": "match(^(da|de|en|en_GB|es|fr|it|nl|no|pl|ru|sv_SE|ta|tr)$)", - "currency": "str", + "currency": "match(^[A-Z]{3}$)", "features": { "batteries": "bool", "calendar": "bool",