@frak-labs/core-sdk
Version:
Core SDK of the Frak wallet, low level library to interact directly with the frak ecosystem.
2 lines • 400 B
JavaScript
const e={eur:`fr-FR`,usd:`en-US`,gbp:`en-GB`};function t(t){return t&&t in e?t:`eur`}function n(t){return t?e[t]??e.eur:e.eur}function r(e,r){let i=n(r),a=t(r);return e.toLocaleString(i,{style:`currency`,currency:a,minimumFractionDigits:0,maximumFractionDigits:2})}function i(e){return e?`${e}Amount`:`eurAmount`}export{r as n,t as r,i as t};
//# sourceMappingURL=getCurrencyAmountKey-C-1W-BRg.js.map