Skip to the content

Bushu部首

Choose the parts you can see in a kanji, intersect their matches, and add a radical picker to your page.

Bushu is the Japanese word 部首 for a kanji radical. About the name

Contents

Reference · Native radical picker

bushuLanguageOffunction

The language a lang attribute asks for: Japanese for any ja, English for everything else.

Import it

import { bushuLanguageOf } from "@johnmorrisdotca/bushu/picker";

Definition

function bushuLanguageOf(tag: string | null | undefined): BushuLanguage

Parameters

NameTypeDescription
tagstring | null | undefined

A language tag; Japanese tags select ja and all other tags select en.

Returns

BushuLanguage

The language a lang attribute asks for: Japanese for any ja, English for everything else.

Examples

import { bushuLanguageOf } from "@johnmorrisdotca/bushu/picker";

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/bushu 1.1.0.