Reference · /subdivision-names/es
NameSourcetype
Where a name came from: Unicode CLDR (tag is its locale: "es", "zh", "zh_Hant"; draft is its draft status, "provisional" for
nearly all of CLDR 48.2's subdivision names, null for an approved one) or a Wikidata label (tag is the label's language
tag: "es", "zh-cn", "zh-tw"; draft is null).
Import it
import type { NameSource } from "@johnmorrisdotca/kuni/subdivision-names/es";
Also exported from: @johnmorrisdotca/kuni/subdivision-names/de, @johnmorrisdotca/kuni/subdivision-names/zh-Hans, @johnmorrisdotca/kuni/subdivision-names/zh-Hant
Definition
interface NameSource {
source: "cldr" | "wikidata";
tag: string;
draft: string | null;
}
Members
| Name | Type | Description |
|---|---|---|
source | "wikidata" | "cldr" | Where the name was read: Unicode CLDR or a Wikidata label. |
tag | string | The CLDR locale or the Wikidata language tag it was read under. |
draft | string | null | CLDR's draft status ("provisional"), |
Examples
import type { NameSource } from "@johnmorrisdotca/kuni/subdivision-names/es";
const source: NameSource = { source: "cldr", tag: "es", draft: "provisional" };
console.log(source.source); // "cldr"cldrWhat it prints (run when this page was built)