UNPKG

@contentstack/cli-variants

Version:

Variants plugin

37 lines (36 loc) 1.44 kB
declare const errors: { CREATE_FAILURE: string; }; declare const commonMsg: { CREATE_SUCCESS: string; }; declare const migrationMsg: { IMPORT_MSG: string; }; declare const variantEntry: { VARIANT_ENTRY_FILE_NOT_FOUND: string; IMPORT_ENTRY_NOT_FOUND: string; EMPTY_VARIANT_UID_DATA: string; VARIANT_ID_NOT_FOUND: string; VARIANT_UID_NOT_FOUND: string; }; declare const expImportMsg: { UPDATING_CT_IN_EXP: string; UPDATED_CT_IN_EXP: string; VALIDATE_VARIANT_AND_VARIANT_GRP: string; PERSONALIZE_JOB_FAILURE: string; }; declare const messages: typeof errors & typeof commonMsg & typeof migrationMsg & typeof variantEntry & typeof expImportMsg; /** * The function `` is a TypeScript function that replaces placeholders in a message string with * values from a provided object. * @param {string} msg - The `msg` parameter is a string that represents the message template with * placeholders for dynamic values. * @param args - The `args` parameter is an object that contains key-value pairs where the key is a * string and the value is also a string. These key-value pairs are used to replace placeholders in the * `msg` string with the corresponding values. * @returns the formatted message with the provided arguments replaced in the placeholders. */ declare function $t(msg: string, args: Record<string, string>): string; export default messages; export { $t, errors, commonMsg };