Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference · /names/zh-Hant

flagNamefunction

The name of a country in Traditional Chinese, as Kuni gives it from Unicode CLDR. A prefecture, a former country, and any place Kuni does not name in Traditional Chinese is null.

Import it

import { flagName } from "@johnmorrisdotca/hata/names/zh-Hant";

Definition

function flagName(code: string): string | null

Parameters

NameTypeDescription
codestring

A flag's code, in any case: "JP", "jp", "DE". A former country's alias is read when that place has a name here.

Returns

string | null

The Traditional Chinese name, or null when this language has no name for that flag.

Examples

import { flagName } from "@johnmorrisdotca/hata/names/zh-Hant";

console.log(flagName("JP"));
console.log(flagName("JP-13"));
日本
null

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.