Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · Printable sheets: the globe and a world map to colour, my country, day and night, the seasons

TITLESconstant

The title of each kind of sheet, in a language.

Import it

import { TITLES } from "@johnmorrisdotca/chikyu-earth/sheets";

Definition

const TITLES: { globe: (view: GlobeView, lang: Lang) => string; map: (lang: Lang) => string; country: (name: string, lang: Lang) => string; daynight: (lang: Lang) => string; seasons: (lang: Lang) => string; } = {
    globe: (view: GlobeView, lang: Lang): string => (lang === "ja" ? VIEW_NAMES[view].ja : VIEW_NAMES[view].en),
    map: (lang: Lang): string => (lang === "ja" ? "せかいちず (世界地図)" : "A map of the world"),
    country: (name: string, lang: Lang): string => (lang === "ja" ? `わたしの くに: ${name}` : `My country: ${name}`),
    daynight: (lang: Lang): string => (lang === "ja" ? "ひると よる (昼と夜)" : "Day and night"),
    seasons: (lang: Lang): string => (lang === "ja" ? "きせつ (季節)" : "The seasons"),
}

Members

NameTypeDescription
globe(view: GlobeView, lang: Lang) => string
map(lang: Lang) => string
country(name: string, lang: Lang) => string
daynight(lang: Lang) => string
seasons(lang: Lang) => string

Examples

import { TITLES } from "@johnmorrisdotca/chikyu-earth/sheets";

console.log(TITLES.globe("americas", "en"), TITLES.country("Japan", "en"), TITLES.seasons("ja"));
The Americas My country: Japan きせつ (季節)

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.