4

I need to integrate a language selector in my app with 2 ones:

  • Spanish
  • Basque

I have two options, adding "Spanish / Basque" but, in responsive I need the prefixes, but I'm unable to find the contraction. I know that Spanish is "ESP", but Basque? I think It's EUS (Basque is Euskera in spanish).

2 Answers 2

7

Depending on the type of code you are using there are a few possibilities. In general I find that the ISO 639 codes are used most of the time.

If you want to use those codes then the options would be the following

  • Spanish: es or spa
  • Basque: eu, eus or baq

Usually, in code (!) and not UI's, these are also used in combination with the ISO country code. For Spain this would mean you end up with these:

  • Spanish: ES-es or ES-spa
  • Basque: ES-eu, ES-eus or ES-baq

Sources:

Has link to the original reference which is less pretty to read :-)

1
  • Normally in the tag the language comes first, so es-ES and eu-ES, and the case is for clarity. I once worked with an open source project that misidentifed French Canadian as CA-fr so I had to demonstrate that the app would load up Catalan language resources when they were available instead of French. fr-CA was the correct tag. Commented Jul 2, 2019 at 13:51
5
  • Spanish could be ESP or SPA (find out which one is a better fit for your users).

  • Basque could be BAQ or EUS (make sure you select what the Basque population would recognise).

    Important: I would use EUS short for Euskera only if the Basques recognise Euskera as Basque. Remember that you are providing the language option for the Basque population not the Spanish speaking one.

enter image description here

enter image description here

References:

https://en.wikipedia.org/wiki/Basque_language

https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?code_ID=47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.