public static function local_currency($value, string $currency, string $locale = null): string
	{
		helper('number');

		$options = [
			'type'     => NumberFormatter::CURRENCY,
			'currency' => $currency,
		];

		return format_number($value, 2, $locale, $options);
	}