Skip to content

COR-3798 - Adding MKD currency#133

Open
pmlemos wants to merge 3 commits intomainfrom
COR-3798
Open

COR-3798 - Adding MKD currency#133
pmlemos wants to merge 3 commits intomainfrom
COR-3798

Conversation

@pmlemos
Copy link
Copy Markdown
Contributor

@pmlemos pmlemos commented Mar 31, 2026

NOTE: MKD currency was already present in some other json file references like in regions file.

Summary by CodeRabbit

  • Chores
    • Added support for the Macedonian Denar (MKD): localized formatting, primary currency symbol "MKD", default locale "mk-MK", and two decimal places for amounts.
    • Updated North Macedonia region to include MKD alongside EUR as available currencies.

@pmlemos pmlemos self-assigned this Mar 31, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

📝 Walkthrough

Walkthrough

Added Macedonian Denar (MKD) to currency datasets and enabled MKD for the North Macedonia region: data/cleansed/currencies.json and data/final/currencies.json gain a new MKD entry; data/final/regions.json's mkd region now lists "MKD" alongside "EUR".

Changes

Cohort / File(s) Summary
Currency — cleansed & final
data/cleansed/currencies.json, data/final/currencies.json
Inserted a new currency object for "Macedonian Denar" with iso_4217_3: "MKD" and number_decimals: 2. The final dataset also includes symbols.primary: "MKD" and default_locale: "mk-MK".
Region update
data/final/regions.json
Updated region id: "mkd" currencies array from ["EUR"] to ["EUR","MKD"] to include the new currency.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title 'COR-3798 - Adding MKD currency' directly and accurately describes the main change: adding MKD (Macedonian Denar) currency data across multiple JSON files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@data/cleansed/currencies.json`:
- Around line 367-371: The MKD entry was added only to the generated cleansed
file and will be overwritten; instead add the Macedonian Denar object (with
"name":"Macedonian Denar", "iso_4217_3":"MKD", "number_decimals":2) into the
source file data/original/currencies.json so cleanse/cleanse.go (which uses
writeJson()) will include it on the next run; update the original JSON, validate
its syntax, and re-run the cleansing step rather than editing
data/cleansed/currencies.json directly.

In `@data/final/currencies.json`:
- Around line 695-703: The default_locale for the "Macedonian Denar" currency
object is incorrect: it currently uses "sk-MK" (Slovak) instead of the
Macedonian language code; update the default_locale value in the currency object
with "name": "Macedonian Denar" (and the same iso_4217_3 "MKD") from "sk-MK" to
"mk-MK" so formatting uses the correct locale.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5b684062-3652-424b-a1ae-922b961c605d

📥 Commits

Reviewing files that changed from the base of the PR and between 1dd7812 and cf58a5b.

📒 Files selected for processing (2)
  • data/cleansed/currencies.json
  • data/final/currencies.json

prakhar-flow
prakhar-flow previously approved these changes Apr 1, 2026
Copy link
Copy Markdown
Contributor

@prakhar-flow prakhar-flow left a comment

Choose a reason for hiding this comment

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

lgtm

@konstantin-petrukhnov-ge
Copy link
Copy Markdown
Contributor

Should we update regions and countries for North Macedonia? It is still EUR there.

@pmlemos
Copy link
Copy Markdown
Contributor Author

pmlemos commented Apr 1, 2026

Should we update regions and countries for North Macedonia? It is still EUR there.

I missed it there....
It is already added to Europe and the World, but you are right: was missing from the North Macedonian region. >>> Fixed!

@pmlemos pmlemos requested a review from prakhar-flow April 1, 2026 09:34
@pmlemos
Copy link
Copy Markdown
Contributor Author

pmlemos commented Apr 1, 2026

Hi @serguei-semikhatov , question:

  • should we change the default currency for North Macedonia?

Currently set as EUR, we can change it to MKD.
Should we? Or should we just add support to MKD without changing any existing setup?

Thanks

FYI: @konstantin-petrukhnov-ge

@pmlemos pmlemos changed the title COR-3798 - Adding MKD currency; COR-3798 - Adding MKD currency Apr 1, 2026
],
"currencies": [
"EUR"
"EUR", "MKD"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should just leave MKD

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@serguei-semikhatov , Do you mean you want me to drop EUR from being available to North Macedonia?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yes.
I don't see why would we keep EUR there if the currency for North Macedonia is MKD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants