Skip to content

Instantly share code, notes, and snippets.

@RyanWarner
Created October 28, 2021 20:27
Show Gist options
  • Save RyanWarner/c3ada035b48cb4540f6778661431a73e to your computer and use it in GitHub Desktop.
Save RyanWarner/c3ada035b48cb4540f6778661431a73e to your computer and use it in GitHub Desktop.
bcp47.ts
/**
* https://www.rfc-editor.org/info/bcp47
* https://www.techonthenet.com/js/language_tags.php
*/
interface LanguageTag {
tag: string
language: string
region: string
description: string
}
const languageTags: LanguageTag[] = [
{
tag: 'ar-SA',
language: 'Arabic',
region: 'Saudi Arabia',
description: 'Arabic (Saudi Arabia)'
},
{
tag: 'bn-BD',
language: 'Bangla',
region: 'Bangladesh',
description: 'Bangla (Bangladesh)'
},
{
tag: 'bn-IN',
language: 'Bangla',
region: 'India',
description: 'Bangla (India)'
},
{
tag: 'cs-CZ',
language: 'Czech',
region: 'Czech Republic',
description: 'Czech (Czech Republic)'
},
{
tag: 'da-DK',
language: 'Danish',
region: 'Denmark',
description: 'Danish (Denmark)'
},
{
tag: 'de-AT',
language: 'German',
region: 'Austria',
description: 'Austrian German'
},
{
tag: 'de-CH',
language: 'German',
region: 'Switzerland',
description: '"Swiss" German'
},
{
tag: 'de-DE',
language: 'German',
region: 'German',
description: 'Standard German (as spoken in Germany)'
},
{
tag: 'el-GR',
language: 'Greek',
region: 'Greece',
description: 'Modern Greek'
},
{
tag: 'en-AU',
language: 'English',
region: 'Australia',
description: 'Australian English'
},
{
tag: 'en-CA',
language: 'English',
region: 'Canada',
description: 'Canadian English'
},
{
tag: 'en-GB',
language: 'English',
region: 'United Kingdom',
description: 'British English'
},
{
tag: 'en-IE',
language: 'English',
region: 'Ireland',
description: 'Irish English'
},
{
tag: 'en-IN',
language: 'English',
region: 'India',
description: 'Indian English'
},
{
tag: 'en-NZ',
language: 'English',
region: 'New Zealand',
description: 'New Zealand English'
},
{
tag: 'en-US',
language: 'English',
region: 'United States',
description: 'US English'
},
{
tag: 'en-ZA',
language: 'English',
region: 'South Africa',
description: 'English (South Africa)'
},
{
tag: 'es-AR',
language: 'Spanish',
region: 'Argentina',
description: 'Argentine Spanish'
},
{
tag: 'es-CL',
language: 'Spanish',
region: 'Chile',
description: 'Chilean Spanish'
},
{
tag: 'es-CO',
language: 'Spanish',
region: 'Columbia',
description: 'Colombian Spanish'
},
{
tag: 'es-ES',
language: 'Spanish',
region: 'Spain',
description: 'Castilian Spanish (as spoken in Central-Northern Spain)'
},
{
tag: 'es-MX',
language: 'Spanish',
region: 'Mexico',
description: 'Mexican Spanish'
},
{
tag: 'es-US',
language: 'Spanish',
region: 'United States',
description: 'American Spanish'
},
{
tag: 'fi-FI',
language: 'Finnish',
region: 'Finland',
description: 'Finnish (Finland)'
},
{
tag: 'fr-BE',
language: 'French',
region: 'Belgium',
description: 'Belgian French'
},
{
tag: 'fr-CA',
language: 'French',
region: 'Canada',
description: 'Canadian French'
},
{
tag: 'fr-CH',
language: 'French',
region: 'Switzerland',
description: '"Swiss" French'
},
{
tag: 'fr-FR',
language: 'French',
region: 'France',
description: 'Standard French (especially in France)'
},
{
tag: 'he-IL',
language: 'Hebrew',
region: 'Israel',
description: 'Hebrew (Israel)'
},
{
tag: 'hi-IN',
language: 'Hindi',
region: 'India',
description: 'Hindi (India)'
},
{
tag: 'hu-HU',
language: 'Hungarian',
region: 'Hungary',
description: 'Hungarian (Hungary)'
},
{
tag: 'id-ID',
language: 'Indonesian',
region: 'Indonesia',
description: 'Indonesian (Indonesia)'
},
{
tag: 'it-CH',
language: 'Italian',
region: 'Switzerland',
description: '"Swiss" Italian'
},
{
tag: 'it-IT',
language: 'Italian',
region: 'Italy',
description: 'Standard Italian (as spoken in Italy)'
},
{
tag: 'jp-JP',
language: 'Japanese',
region: 'Japan',
description: 'Japanese (Japan)'
},
{
tag: 'ko-KR',
language: 'Korean',
region: 'Republic of Korea',
description: 'Korean (Republic of Korea)'
},
{
tag: 'nl-BE',
language: 'Dutch',
region: 'Belgium',
description: 'Belgian Dutch'
},
{
tag: 'nl-NL',
language: 'Dutch',
region: 'The Netherlands',
description: 'Standard Dutch (as spoken in The Netherlands)'
},
{
tag: 'no-NO',
language: 'Norwegian',
region: 'Norway',
description: 'Norwegian (Norway)'
},
{
tag: 'pl-PL',
language: 'Polish',
region: 'Poland',
description: 'Polish (Poland)'
},
{
tag: 'pt-BR',
language: 'Portugese',
region: 'Brazil',
description: 'Brazilian Portuguese'
},
{
tag: 'pt-PT',
language: 'Portugese',
region: 'Portugal',
description: 'European Portuguese (as written and spoken in Portugal)'
},
{
tag: 'ro-RO',
language: 'Romanian',
region: 'Romania',
description: 'Romanian (Romania)'
},
{
tag: 'ru-RU',
language: 'Russian',
region: 'Russian Federation',
description: 'Russian (Russian Federation)'
},
{
tag: 'sk-SK',
language: 'Slovak',
region: 'Slovakia',
description: 'Slovak (Slovakia)'
},
{
tag: 'sv-SE',
language: 'Swedish',
region: 'Sweden',
description: 'Swedish (Sweden)'
},
{
tag: 'ta-IN',
language: 'Tamil',
region: 'India',
description: 'Indian Tamil'
},
{
tag: 'ta-LK',
language: 'Tamil',
region: 'Sri Lanka',
description: 'Sri Lankan Tamil'
},
{
tag: 'th-TH',
language: 'Thai',
region: 'Thailand',
description: 'Thai (Thailand)'
},
{
tag: 'tr-TR',
language: 'Turkish',
region: 'Turkey',
description: 'Turkish (Turkey)'
},
{
tag: 'zh-CN',
language: 'Chinese',
region: 'China',
description: 'Mainland China, simplified characters'
},
{
tag: 'zh-HK',
language: 'Chinese',
region: 'Hond Kong',
description: 'Hong Kong, traditional characters'
},
{
tag: 'zh-TW',
language: 'Chinese',
region: 'Taiwan',
description: 'Taiwan, traditional characters'
}
]
export default languageTags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment