import { ReadonlyReactive } from "@conterra/reactivity-core"; import { ApplicationMetadata } from "../metadata"; import { PackageIntl } from "./PackageIntl"; /** * Represents i18n info for the entire application. * Currently not exposed to user code. */ export interface AppIntl { destroy(): void; /** Chosen locale */ readonly locale: string; /** Supported locales from app metadata. */ readonly supportedMessageLocales: string[]; /** True if the locale can be used in this application (i.e. if there are any messages). */ supportsLocale(locale: string): boolean; /** Given the package name, constructs a package i18n instance. */ createPackageI18n(packageName: string): ReadonlyReactive; } /** * Initializes the application's locale and fetches the appropriate i18n messages. */ export declare function initI18n(appMetadata: ApplicationMetadata | undefined, forcedLocale: string | undefined): Promise;