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 · Countries and lookup tools

subregionNamefunction

A UN M49 subregion's name, from CLDR.

Import it

import { subregionName } from "@johnmorrisdotca/kuni";

Definition

function subregionName(subregion: string, language?: Language): string | null

Parameters

NameTypeDescription
subregionstring

Three digits, as Country.subregion gives it: "030".

language (optional)"en" | "ja"

"en" (the default) or "ja".

Returns

string | null

The name; null for a code no country is in.

Examples

import { subregionName } from "@johnmorrisdotca/kuni";

console.log(subregionName("030"));         // "Eastern Asia"
console.log(subregionName("030", "ja"));   // "東アジア"
Eastern Asia
東アジア

What it prints (run when this page was built)

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