UNPKG

generaltranslation

Version:

A language toolkit for AI developers

23 lines (22 loc) 798 B
/** * Mark as a non-translatable string. Use within a declareStatic() call to mark content as not statically analyzable (e.g., not possible to know before runtime). * * @example * function staticFunction() { * if (condition) { * return declareVar(Math.random()) * } * return 'John Doe'; * } * * const gt = useGT(); * gt(`My name is ${declareStatic(staticFunction())}`); * * @param {string | number | boolean | null | undefined} variable - The variable to sanitize. * @param {Object} [options] - The options for the sanitization. * @param {string} [options.$name] - The name of the variable. * @returns {string} The sanitized value. */ export declare function declareVar(variable: string | number | boolean | null | undefined, options?: { $name?: string; }): string;