Skip to the content

Dominoドミノ

Deal seeded dominoes, play Mexican Train with native rules and computers, and replay a saved game.

Domino is the Japanese borrowed word ドミノ for dominoes. About the name

Contents

Reference · Tiles, Mexican Train and replay

dominoLanguagefunction

The language a person asked for, by en or ja or a tag that begins with one: English for anything else.

Import it

import { dominoLanguage } from "@johnmorrisdotca/domino";

Definition

function dominoLanguage(tag: string | undefined): Language

Parameters

NameTypeDescription
tagstring | undefined

A language tag, or undefined to select English.

Returns

Language

The language a person asked for, by en or ja or a tag that begins with one: English for anything else.

Examples

import { dominoLanguage } from "@johnmorrisdotca/domino";

console.log(dominoLanguage("ja-JP"));
ja

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/domino 1.1.4.