Skip to content

Commit

Permalink
localise prices
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadret committed Sep 4, 2024
1 parent 10025c6 commit 9648dcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1.1.3 (2023-01-05)
------------------------------------------------------------------------
- Fix: [#8] "Invalid parameter" error message when ride price is over 20 GBP
- Improved: Prices are now localised

1.1.2 (2023-01-05)
------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/UIWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default class UIWindow {
checkbox(config.lazyTaxEnabled, true),
spinner(config.lazyTaxFactor, value => value + "%", 0, 100, 5),
label(config.priceLimit, true),
spinner(config.priceLimit, value => value / 10 + ".00", 0, 200, 10),
spinner(config.priceLimit, value => context.formatString("{CURRENCY2DP}", value), 0, 200, 10),
);
advance(space);
widgets.push(
Expand All @@ -172,7 +172,7 @@ export default class UIWindow {
advance(space);
widgets.push(
checkbox(config.toiletPriceManagementEnabled),
spinner(config.toiletPrice, value => `${Math.floor(value / 10)}.${value % 10}0`, 0, undefined, 1),
spinner(config.toiletPrice, value => context.formatString("{CURRENCY2DP}", value), 0, undefined, 1),
);
advance(space);
widgets.push(
Expand Down

0 comments on commit 9648dcd

Please sign in to comment.