LocalizedTexttype
One authored text in English and Japanese.
Import it
import type { LocalizedText } from "@johnmorrisdotca/houseki/colour-chains";
Definition
interface LocalizedText {
readonly en: string;
readonly ja: string;
}
Members
| Name | Type | Description |
|---|---|---|
en | string | |
ja | string |
Examples
import type { LocalizedText } from "@johnmorrisdotca/houseki/colour-chains";
const value: LocalizedText = {en:"A small puzzle",ja:"小さいパズル"};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'en', 'ja' ]What it prints (run when this page was built)