suidoSay関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A line in a language, with its values filled in; the line itself if there is none by that name.
インポート
import { suidoSay } from "@johnmorrisdotca/suido/play";
定義
function suidoSay(language: SuidoLanguage, key: string, values?: Record<string, string | number>): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
language | SuidoLanguage | The English or Japanese display language. |
key | string | The native localized label key. |
values (省略可) | Record<string, string | number> | Values to interpolate, or numerical measurements to sort as specified by the signature. |
戻り値
string
A line in a language, with its values filled in; the line itself if there is none by that name.
例
import { suidoSay } from "@johnmorrisdotca/suido/play";
console.log(suidoSay("en","restart"));Start over出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。