function loadCatalog
loadCatalog(locale?: Locale): Promise<void>

Loads the messages of locale, the detected one by default, then activates it and stores it for the next visit. There is no language switch in the interface yet, so the stored one comes from the browser's language.

Parameters

optional
locale: Locale

Return Type

Promise<void>

Usage

import { loadCatalog } from "src/i18n.ts";