[GH-ISSUE #600] Catalan flag does not follow ISO-639 language code #339

Closed
opened 2026-03-03 14:37:39 +03:00 by kerem · 9 comments
Owner

Originally created by @AzaZPPL on GitHub (Sep 17, 2019).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/600

The Catalan flag has been added in https://github.com/lipis/flag-icon-css/pull/374 with the extension of 'ct'. The ISO-639-1 Language code for Catalan is 'ca'.

The class name should be changed 'flag-icon-es-ct' to 'flag-icon-es-ca'. We could also keep it backward compatible by only adding the 'flag-icon-es-ca'.

Originally created by @AzaZPPL on GitHub (Sep 17, 2019). Original GitHub issue: https://github.com/lipis/flag-icons/issues/600 The Catalan flag has been added in https://github.com/lipis/flag-icon-css/pull/374 with the extension of 'ct'. The ISO-639-1 Language code for Catalan is 'ca'. The class name should be changed 'flag-icon-es-ct' to 'flag-icon-es-ca'. We could also keep it backward compatible by only adding the 'flag-icon-es-ca'.
kerem closed this issue 2026-03-03 14:37:39 +03:00
Author
Owner

@lipis commented on GitHub (Sep 30, 2019):

source?

<!-- gh-comment-id:536732045 --> @lipis commented on GitHub (Sep 30, 2019): source?
Author
Owner

@AzaZPPL commented on GitHub (Sep 30, 2019):

https://www.loc.gov/standards/iso639-2/php/code_list.php

<!-- gh-comment-id:536741074 --> @AzaZPPL commented on GitHub (Sep 30, 2019): https://www.loc.gov/standards/iso639-2/php/code_list.php
Author
Owner

@lipis commented on GitHub (Oct 1, 2019):

these are the language codes.. we store country codes

<!-- gh-comment-id:536948122 --> @lipis commented on GitHub (Oct 1, 2019): these are the language codes.. we store country codes
Author
Owner

@lipis commented on GitHub (Oct 1, 2019):

and ca is already taken by Canada

<!-- gh-comment-id:536948573 --> @lipis commented on GitHub (Oct 1, 2019): and ca is already taken by Canada
Author
Owner

@AzaZPPL commented on GitHub (Oct 1, 2019):

Catalan is not a country. It's a specific region inside of Spain. If you only want to store country codes it makes no sense to add Catalan to this list anyway.

The current usage is with es-ct. If we change it to es-ca it will not replace Canada which is ca.

Since this package is also following ISO 3166-1-alpha-2 code of a country with some region support, it only makes sense that it also uses the ISO 639-1 to give a proper key to those region flags and not some randomly thought up one.

<!-- gh-comment-id:537034624 --> @AzaZPPL commented on GitHub (Oct 1, 2019): Catalan is not a country. It's a specific region inside of Spain. If you only want to store country codes it makes no sense to add Catalan to this list anyway. The current usage is with `es-ct`. If we change it to `es-ca` it will not replace Canada which is `ca`. Since this package is also following ISO 3166-1-alpha-2 code of a country with some region support, it only makes sense that it also uses the ISO 639-1 to give a proper key to those region flags and not some randomly thought up one.
Author
Owner

@lipis commented on GitHub (Oct 1, 2019):

you might have some points here..

<!-- gh-comment-id:537040238 --> @lipis commented on GitHub (Oct 1, 2019): you might have some points here..
Author
Owner

@lipis commented on GitHub (Oct 1, 2019):

Do you mind opening a PR? no need for backwards compatibility..

<!-- gh-comment-id:537084626 --> @lipis commented on GitHub (Oct 1, 2019): Do you mind opening a PR? no need for backwards compatibility..
Author
Owner

@AzaZPPL commented on GitHub (Oct 4, 2019):

Sure I'll write one right now

<!-- gh-comment-id:538267296 --> @AzaZPPL commented on GitHub (Oct 4, 2019): Sure I'll write one right now
Author
Owner

@markusand commented on GitHub (Aug 4, 2020):

I consider this not being an appropriate change. As pointed previously ISO 639-1 codes are used for languages (and using flags to identify a language is always a bad idea) while the ISO 3166-2 are the codes used to identify country subdivisions. In the case of Catalunya the ISO 3166-2:ES code happens to be es-ct.

<!-- gh-comment-id:668722598 --> @markusand commented on GitHub (Aug 4, 2020): I consider this not being an appropriate change. As pointed previously ISO 639-1 codes are used for languages (and using flags to identify a language is always a bad idea) while the ISO 3166-2 are the codes used to identify country subdivisions. In the case of Catalunya the [ISO 3166-2:ES](https://en.wikipedia.org/wiki/ISO_3166-2:ES) code happens to be es-ct.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#339
No description provided.