Files
ipal-kit/dist/modules/i18n/helpers.d.ts
T
2026-08-03 12:24:28 +02:00

18 lines
643 B
TypeScript

import type { I18nConfig, LocaleDefinition } from './types.js';
/**
* Returns all configured locale codes.
*/
export declare function getLocaleCodes(config: I18nConfig): string[];
/**
* Returns the default locale code.
*/
export declare function getDefaultLocale(config: I18nConfig): string;
/**
* Checks if a string is a valid configured locale code.
*/
export declare function isValidLocale(code: string, config: I18nConfig): boolean;
/**
* Returns the full locale definition for a given code, or undefined if not found.
*/
export declare function getLocaleDefinition(code: string, config: I18nConfig): LocaleDefinition | undefined;