Reference · Tiles, layouts and deals
tileNamefunction
A tile's name in a language, from its code; the code itself for a letter that is no face.
Import it
import { tileName } from "@johnmorrisdotca/jarajara";
Definition
function tileName(code: string, language?: TileLanguage): string
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The one-character face code or tile identifier. |
language (optional) | TileLanguage | The English or Japanese display language. |
Returns
string
A tile's name in a language, from its code; the code itself for a letter that is no face.
Examples
import { tileName } from "@johnmorrisdotca/jarajara";
console.log(tileName("F","ja"));中What it prints (run when this page was built)