Dashboard Issue: Incorrect Locale Mapping for Catalan (ca) - (UI sites list language column displays Canadian flag instead of Catalan flag)

Hello everyone and the MainWP Team,

I’ve noticed a small but slightly confusing mapping issue in the MainWP Dashboard concerning the Catalan language locale (ca).

WordPress correctly uses the ISO 639-1 code ca for the Catalan language (Català). However, it appears that the MainWP interface is incorrectly mapping this code to the ISO 3166-1 country code for Canada (CA), displaying the Canadian flag instead of Catalan flag.

The Problem

In WordPress, the standard ISO 639-1 code for the Catalan language (Català) is simply ca.

When I connect a child site where the WP language is set to Catalan (ca), the MainWP Dashboard (specifically in the site’s overview or management sections) appears to be interpreting this locale code as the ISO 3166-1 country code for Canada (CA).

As a result, sites set to Catalan are currently displayed with the Canadian flag instead of the correct language/flag.

Request for Fix

I understand this is a common ambiguity, as the language code (ca) and the country code for Canada (CA) are very similar.

Could the development team please look into adjusting the locale mapping in the Dashboard? The fix would involve ensuring that the ca locale is explicitly mapped to Catalan (Català), and not the country of Canada, which typically uses locales like en_CA or fr_CA.

This would greatly help Catalan-speaking users keep their dashboard accurate!

Thanks for your wonderful work on MainWP, and I appreciate your attention to this detail.

Carles

1 Like

Hey @aladetres

Thanks for reporting this to us.

I’ve managed to reproduce the issue, and it will be fixed in an upcoming MainWP Dashboard release.

1 Like

Excellent! Thank you Bojan!

1 Like

Hey @aladetres

The fix for this was included in version 5.4.0.23 of the MainWP Dashboard plugin, released on Oct 7, 2025.

Thanks again for reporting this to us.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.