Skip to the content

Kyuubuキューブ

Turn CSS 3D cubes by touch, keys or notation, reproduce a scramble from a seed, and follow a solve one named step at a time.

Kyuubu (キューブ) is the Japanese spelling of cube. About the name

Contents

Reference · Cube engine and views

languageOffunction

The language a tag names, as far as the package speaks it: anything beginning "ja" is Japanese, and the rest is English.

Import it

import { languageOf } from "@johnmorrisdotca/kyuubu";

Definition

function languageOf(tag: string | null | undefined): KyuubuLanguage

Parameters

NameTypeDescription
tagstring | null | undefined

The language tag to read.

Returns

KyuubuLanguage

The language a tag names, as far as the package speaks it: anything beginning "ja" is Japanese, and the rest is English.

Examples

import { languageOf } from "@johnmorrisdotca/kyuubu";

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kyuubu 1.14.1.