https://bugs.kde.org/show_bug.cgi?id=505639

            Bug ID: 505639
           Summary: Locale format the donation fields
    Classification: Websites
           Product: www.kde.org
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to