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 · /names/fr

NamesListOptionstype

What countries() may be asked.

Import it

import type { NamesListOptions } from "@johnmorrisdotca/kuni/names/fr";

Also exported from: @johnmorrisdotca/kuni/names/es, @johnmorrisdotca/kuni/names/de, @johnmorrisdotca/kuni/names/zh-Hans, @johnmorrisdotca/kuni/names/zh-Hant, @johnmorrisdotca/kuni/names/ko, @johnmorrisdotca/kuni/names/pt, @johnmorrisdotca/kuni/names/ar, @johnmorrisdotca/kuni/names/ru

Definition

interface NamesListOptions {
    order?: "code" | "name";
}

Members

NameTypeDescription
order (optional)"code" | "name" | undefined

"code" (the default) is alpha-2 order; "name" is by the name folded for this language, in plain code-unit order (not a locale's collation), countries with no name last.

Examples

import type { NamesListOptions } from "@johnmorrisdotca/kuni/names/fr";

const options: NamesListOptions = { order: "name" };
console.log(options.order);   // "name"
name

What it prints (run when this page was built)

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