Reference · Samurai battle banners
samuraiAboutfunction
What the banner is, in a sentence, in English or Japanese: the design and whose it was.
Import it
import { samuraiAbout } from "@johnmorrisdotca/hata/samurai";
Definition
function samuraiAbout(id: string, lang?: string): string | null
Parameters
| Name | Type | Description |
|---|---|---|
id | string | A banner's id, in any case, with or without |
lang (optional) | string |
|
Returns
string | null
The sentence, or null when the set has no such banner.
Examples
import { samuraiAbout } from "@johnmorrisdotca/hata/samurai";
console.log(samuraiAbout("samurai:ii-igeta", "ja")); // "赤地に金の井桁。赤で知られた井伊直政の隊の纏です。"赤地に金の井桁。赤で知られた井伊直政の隊の纏です。What it prints (run when this page was built)