Bug 505639 - Locale format the donation fields
Summary: Locale format the donation fields
Status: REPORTED
Alias: None
Product: www.kde.org
Classification: Websites
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: kde-www mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-15 18:31 UTC by Emir SARI
Modified: 2025-06-15 18:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emir SARI 2025-06-15 18:31:19 UTC
The donation field in kde.org footer and the one-time donation field in kde.org/donate does not have localised formatting for the decimal field and the currency sign.

Something like:

function formatCurrency(value, locale = navigator.language, currency = 'EUR') {
            const formatter = new Intl.NumberFormat(locale, {
            style: 'currency',
        currency: currency
    });
    return formatter.format(value);
}

would make it look more professional, instead of an out-of-field currency sign.