medievalName関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A banner's name, in English or Japanese: whose it was and what it is. Any language tag that starts with ja is Japanese.
インポート
import { medievalName } from "@johnmorrisdotca/hata/medieval";
定義
function medievalName(id: string, lang?: string): string | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A banner's id, in any case, with or without |
lang (省略可) | string |
|
戻り値
string | null
The name, or null when the set has no such banner.
例
import { medievalName } from "@johnmorrisdotca/hata/medieval";
console.log(medievalName("med:red-cross")); // "The red cross on white (St George's Cross)"
console.log(medievalName("med:red-cross", "ja")); // "白地に赤い十字(聖ジョージ十字)"The red cross on white (St George's Cross)
白地に赤い十字(聖ジョージ十字)出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。