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 · Military flags (naval ensigns, jacks and war flags)

militaryAboutfunction

What the flag is, in a sentence, in English or Japanese: whose it is, what it shows and when it was fixed.

Import it

import { militaryAbout } from "@johnmorrisdotca/hata/military";

Definition

function militaryAbout(id: string, lang?: string): string | null

Parameters

NameTypeDescription
idstring

A flag's id, in any case, with or without mil:.

lang (optional)string

"en" (the default), "ja", or a tag such as "ja-JP".

Returns

string | null

The sentence, or null when the set has no such flag.

Examples

import { militaryAbout } from "@johnmorrisdotca/hata/military";

console.log(militaryAbout("mil:us-navy-jack", "ja")); // "アメリカの国旗の青い部分だけを旗にしたもの…"
アメリカの国旗の青い部分だけを旗にしたもので、50個の白い星を並べます。停泊中のアメリカ海軍の艦艇が艦首の旗竿に掲げます。

What it prints (run when this page was built)

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