Page MenuHomePhabricator

[Cashtab] Support UAE Dirham currency
ClosedPublic

Authored by bytesofman on Sep 23 2023, 18:41.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC23089449df42: [Cashtab] Support UAE Dirham currency
Summary

Implement support for AED fiat. Coingecko supports so this is a straightforward add.

Test Plan

npm test, npm start and switch to the currency in settings, check that amount is in line with FOREX rate

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emack added a subscriber: emack.

Accepted with minor nit

cashtab/src/config/cashtabSettings.js
19 ↗(On Diff #42353)

Symbol should be د.إ to be consistent with the yuan, yen...etc

This revision is now accepted and ready to land.Sep 24 2023, 15:04

using locale alphabet for symbol

bytesofman added inline comments.
cashtab/src/config/cashtabSettings.js
19 ↗(On Diff #42353)

Good point -- gave this a try. However the arabic alphabet is right-to-left, which causes this symbol to appear on the right side of the balance number (which still reads left to right in Cashtab). I tried looking up some examples of how this would usually appear in the UAE but didn't immediately find an answer I was confident with. So, I'm not sure if this placement would be correct or confusing.

So -- let's use the latin one here to start since it is at least a known convention and does not require special handling for right-to-left issue. If we get an ask for changing it, can work it out.

This revision was automatically updated to reflect the committed changes.
bytesofman marked an inline comment as done.