LocalizedTexttype
Words in both languages.
Import it
import type { LocalizedText } from "@johnmorrisdotca/houseki/tsumiki";
Definition
interface LocalizedText {
readonly en: string;
readonly ja: string;
}
Members
| Name | Type | Description |
|---|---|---|
en | string | |
ja | string |
Examples
import type { LocalizedText } from "@johnmorrisdotca/houseki/tsumiki";
const value: LocalizedText = { en: "Lines", ja: "列" };
console.log(value.en);LinesWhat it prints (run when this page was built)