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 · /capitals

CountryCapitaltype

One capital city of a country that has more than one, or whose capital is not the one capital names alone, from capitalsOf in the /capitals entry.

Import it

import type { CountryCapital } from "@johnmorrisdotca/kuni/capitals";

Definition

interface CountryCapital {
    name: {
        en: string;
        ja: string | null;
    };
    role: CapitalRole;
    disputed?: boolean;
    note?: string;
}

Members

NameTypeDescription
name{ en: string; ja: string | null; }

The city's name: kuni's own, in English and Japanese; ja is null where kuni has no Japanese name for it.

roleCapitalRole

What it is the capital for.

disputed (optional)boolean | undefined

Present and true where the country's capital is disputed. No entry has it yet: a disputed capital is a decision for the maintainer, so Israel and the Palestinian Territories have no entry.

note (optional)string | undefined

Where the source's word for the role is not one of the five, the word, and what the source says of the country's other cities; absent where there is nothing to add.

Examples

import type { CountryCapital } from "@johnmorrisdotca/kuni/capitals";
import { capitalsOf } from "@johnmorrisdotca/kuni/capitals";

const value: CountryCapital = capitalsOf("ZA")![1];
console.log(value.name.en, value.role); // "Cape Town" "legislative"
Cape Town legislative

What it prints (run when this page was built)

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