UNPKG

markuplint

Version:

An HTML linter for all markup developers

12 lines (11 loc) 518 B
import type { LocaleSet } from '@markuplint/i18n'; /** * Loads the locale-specific message set for use in violation messages. * * If no locale is provided, it auto-detects the OS locale. When the requested * locale is not available, it falls back to English (`en`). * * @param locale - An optional BCP 47 locale string (e.g., `"ja"`, `"en-US"`). * @returns The loaded locale set containing translated messages and the resolved locale code. */ export declare function i18n(locale?: string): Promise<LocaleSet>;