Spain
As a percentage of the general population of all Spain, Spanish is natively spoken by 74%, Catalan by 17%, Galician by 7% and Basque by 2% of all Spaniards. Occitan is spoken by less than 5,000 people, only in the small region of "Val d'Aran".
Other Romance minority languages, though not official, have special recognition, such as the Astur-Leonese language ("asturianu", "bable" or "llionés") and Aragonese ("aragonés") in Aragon.
Language code
For example, most people in Central America and South America speak Spanish. Spanish spoken in Mexico will be slightly different from Spanish spoken in Peru. Different regions of Mexico will have slightly different dialects and accents of Spanish. A language code scheme might group these all as "Spanish" for choosing a keyboard layout, most as "Spanish" for general usage, or separate each dialect to allow region-specific idioms.