Greasy Fork is available in English.

Country Code

ISO 3166-1 alpha-2

ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @require https://update.greasyfork.org/scripts/465957/1188611/Country%20Code.js.

ავტორი
schimon
ვერსია
23.04
შექმნილია
10.05.2023
განახლებულია
10.05.2023
ლიცენზია
MIT

Usage:

countryCode["DE"] // "Germany"

Example:

nationCode = "de"
countryCode[nationCode] // undefined

Solution:

nationCode = nationCode.toUpperCase()
countryCode[nationCode] // "Germany"