wuchale
Version:
Protobuf-like i18n from normal code
18 lines • 703 B
TypeScript
import { type Adapter } from "./adapters.js";
export type ConfigPartial = {
sourceLocale?: string;
otherLocales?: string[];
geminiAPIKey?: string;
messages?: boolean;
};
export type Config = ConfigPartial & {
adapters?: Record<string, Adapter>;
hmr?: boolean;
};
export declare const defaultConfig: Config;
export declare function defineConfig(config: Config): Config;
export declare function deepMergeObjects<Type>(source: Type, target: Type): Type;
export declare const configName = "wuchale.config.js";
export declare const getLanguageName: (code: string) => string;
export declare function getConfig(configPath?: string): Promise<Config>;
//# sourceMappingURL=config.d.ts.map