continentNameIn関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A continent's name in a table of strings, by its key ("northAmerica", "asia"…).
インポート
import { continentNameIn } from "@johnmorrisdotca/tenka/ui";
ほかのエクスポート元: @johnmorrisdotca/tenka
定義
function continentNameIn(strings: TenkaStrings, key: string): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
strings | TenkaStrings | The localized words used to format names or the record. |
key | string | The continent identifier, or null to show the whole map. |
戻り値
string
A continent's name in a table of strings, by its key ("northAmerica", "asia"…).
例
import { TENKA_STRINGS, continentNameIn } from "@johnmorrisdotca/tenka/ui";
console.log(continentNameIn(TENKA_STRINGS.en,"europe"));Europe出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。