mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Complete and tested. The module has two flavors, one for browser and one For node. The typings cover both of them.
11 lines
238 B
TypeScript
11 lines
238 B
TypeScript
import localizedCountries = require("localized-countries");
|
|
|
|
localizedCountries("de").get("DE");
|
|
// => "Deutschland"
|
|
|
|
localizedCountries("en").get("US");
|
|
// => "United States"
|
|
|
|
localizedCountries("de").object()["DE"];
|
|
// => "Deutschland"
|