Skip to the content

Tenka天下

Play seeded world conquest for two to six, with dice battles, cards, computer players and saved games.

Tenka means the world under heaven in Japanese. About the name

Contents

Reference · Browser table and SVG

continentNameInfunction

A continent's name in a table of strings, by its key ("northAmerica", "asia"…).

Import it

import { continentNameIn } from "@johnmorrisdotca/tenka/ui";

Also exported from: @johnmorrisdotca/tenka

Definition

function continentNameIn(strings: TenkaStrings, key: string): string

Parameters

NameTypeDescription
stringsTenkaStrings

The localized words used to format names or the record.

keystring

The continent identifier, or null to show the whole map.

Returns

string

A continent's name in a table of strings, by its key ("northAmerica", "asia"…).

Examples

import { TENKA_STRINGS, continentNameIn } from "@johnmorrisdotca/tenka/ui";

console.log(continentNameIn(TENKA_STRINGS.en,"europe"));
Europe

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tenka 2.2.0.