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
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A flag's id, in any case, with or without |
lang (省略可) | string |
|
戻り値
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個の白い星を並べます。停泊中のアメリカ海軍の艦艇が艦首の旗竿に掲げます。出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。