Reference · Regions and international bodies
GroupingNametype
Another name a grouping goes by, in English and Japanese.
Import it
import type { GroupingName } from "@johnmorrisdotca/kuni/groupings";
Definition
interface GroupingName {
en: string;
ja: string;
reading?: string;
}
Members
| Name | Type | Description |
|---|---|---|
en | string | In English: "Kansai region". |
ja | string | In Japanese: "関西地方". |
reading (optional) | string | undefined | The Japanese in hiragana, where it has kanji: "かんさいちほう". |
Examples
import type { GroupingName } from "@johnmorrisdotca/kuni/groupings";
const value: GroupingName = {en:"Kansai region",ja:"関西地方",reading:"かんさいちほう"};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'en', 'ja', 'reading' ]What it prints (run when this page was built)