F
Filament11mo ago
farimir

Change Currency prefix using money() method

Is it possible to customise the currency prefix when using the money() method? I am currently using 'ZAR" as a parameter, however that sets the prefix to ZAR, which is not wrong - however R is more commonly used in South Africa.
2 Replies
Tieme
Tieme11mo ago
Instead of using money() i personaly use
->formatStateUsing(fn ($state): string => Number::currency($state, 'EUR', auth()->user()->appearance->language)),
->formatStateUsing(fn ($state): string => Number::currency($state, 'EUR', auth()->user()->appearance->language)),
farimir
farimirOP11mo ago
Thanks, will give that a try
Want results from more Discord servers?
Add your server