Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

Reference · /subdivision-names/zh-Hans

defaultconstant

The subdivisions' names in Simplified Chinese: subdivisionName, subdivisionNameSource, subdivisionsByName and subdivisionByName (search that folds as Simplified Chinese is typed), subdivisionsOf, count and fold. 4356 of the 5050 subdivisions have a name; the rest answer null. Also the default export.

Import it

import value from "@johnmorrisdotca/kuni/subdivision-names/zh-Hans";

Definition

const names: SubdivisionNames = createSubdivisionNames(ZH_HANS_SUBDIVISIONS)

Examples

import names from "@johnmorrisdotca/kuni/subdivision-names/zh-Hans";

console.log(names.language);                                 // "zh-Hans"
console.log(names.subdivisionName("JP-13"));              // "东京都"
console.log(names.subdivisionNameSource("JP-13")?.source); // "wikidata"
console.log(names.subdivisionByName("东京都", { country: "JP" }));   // "JP-13"
zh-Hans
东京都
wikidata
JP-13

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.19.0.