/**@format */ /// /** Default language define of i18n cache */ export declare const DEFAULT_LANGUAGE = "DEFAULT_LANGUAGE"; /** * Package Module Name * This is a id of package module * core: shell-core * react: shell-react * ui: shell-ui */ export type i18nModuleName = "core" | "react" | "ui"; /** * Set international package to module cache * * @param lang the language name * @param packageName the package id of the package path * @param module the module require interface */ export declare function setI18nModuleCache(lang: string, packageName: i18nModuleName, module: __WebpackModuleApi.RequireContext): void; /** * Get international module require interface by language and package name from module cache * * @param lang the language name * @param packageName the package id of the package path * @returns return the module require function */ export declare function getI18nModuleCache(lang: string, packageName: i18nModuleName): __WebpackModuleApi.RequireContext | undefined; /** * Get i18n text from specific file. * * @param packageName the package id of the root folder under packages * @param file the i18n file path (relative path of the root folder) * @param key the i18n key * @param params string params for format needs * @param fallString a string to use when the specific i18n value is not found * @returns return a formatted i18n value string. */ export declare function getTextFromFile(packageName: i18nModuleName, file: string, key: string, params?: (string | number)[] | string, fallString?: string): string;