* Merge main into turbo-monrepo * feat: rename apps * feat: remove supbase videos and serve all from project * feat: move supabase to root * feat: update README * docs: update link
9 lines
233 B
TypeScript
9 lines
233 B
TypeScript
export default (currency: string | undefined) => {
|
|
const locale = currency == 'NGN' ? 'en-NG' : 'en-US';
|
|
return new Intl.NumberFormat(locale, {
|
|
style: 'currency',
|
|
currency: currency,
|
|
minimumFractionDigits: 2
|
|
});
|
|
};
|