本文へ移動

Hata旗

国や地域の旗を読み込み、対応する表示の形を選び、絵ごとの資料・作者・ライセンスを保てます。

「旗(はた)」は、旗を表す日本語です。 名前について(英語)

目次

リファレンス · 軍の旗(軍艦旗・艦首旗・軍旗)

militaryAbout関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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

インポート

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

定義

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

引数

名前型説明
idstring

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

lang (省略可)string

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

戻り値

string | null

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

例

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

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hata 1.31.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。