Skip to main content

LANGUAGE_STORAGE_KEY

The localStorage key holding the language choice, as JSON (a BCP 47 tag such as "af", or null). The settings store writes it; the pre-paint script reads it to set lang on the root element.

This is a constant exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { LANGUAGE_STORAGE_KEY } from "@mapcairn/core";

LANGUAGE_STORAGE_KEY = "mapcairn:language"

Source: packages/core/src/theme/themeConstants.ts:22