From e7268d269e5372ebc6405cb28568c6a0a9832e7f Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 13 Aug 2025 12:57:41 -0600 Subject: [PATCH] Add i18n --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9030b75..f67d65b 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,13 @@ PostalPoint uses the Jimp library version 1.6 for creating and manipulating imag * `Jimp()`: The [JavaScript Image Manipulation Program](https://jimp-dev.github.io/jimp/). Access like so: `const {Jimp} = global.apis.graphics.Jimp();`. * `async loadFont(filename)`: Replacement for [Jimp's loadFont](https://jimp-dev.github.io/jimp/api/jimp/functions/loadfont/), which gets very confused about our JS environment and ends up crashing everything. +#### I18N + +`global.apis.i18n.`: + +* `country()`: Returns the 2-character country code that PostalPoint is running in (examples: "US", "CA"). +* `currency()`: Returns the 3-character currency code (examples: "usd", "cad"). + #### Kiosk `global.apis.kiosk.`: