Reference · Browser table and SVG
tenkaStringsfunction
The table of strings for a locale with a page's own words laid over it. An unknown locale is English.
Import it
import { tenkaStrings } from "@johnmorrisdotca/tenka/ui";
Also exported from: @johnmorrisdotca/tenka
Definition
function tenkaStrings(locale: TenkaLocale | string | undefined, own?: Partial<TenkaStrings>): TenkaStrings
Parameters
| Name | Type | Description |
|---|---|---|
locale | string | undefined | The requested language tag. |
own (optional) | Partial<TenkaStrings> | Optional overrides for the built-in words. |
Returns
TenkaStrings
The table of strings for a locale with a page's own words laid over it. An unknown locale is English.
Examples
import { tenkaStrings } from "@johnmorrisdotca/tenka/ui";
console.log(tenkaStrings("ja").newGame);新しいゲームWhat it prints (run when this page was built)