survey-creator-core
Version:
A framework-independent core package of the SurveyJS Survey Creator component. With Survey Creator, you can visually design complex, interactive JSON forms and surveys in a drag-and-drop interface.
10 lines (9 loc) • 857 B
TypeScript
import { LocalizableString, SurveyModel, Base, JsonObjectProperty } from "survey-core";
import { ISurveyCreatorOptions } from "../creator-settings";
export declare function doMachineStringsTranslation(survey: SurveyModel, creatorOptions: ISurveyCreatorOptions, locales: Array<string>): void;
export interface ICollectLocalizableStringsOptions {
canShowProperty(reason: string, obj: Base, property: JsonObjectProperty, locStr: LocalizableString, isShowing: boolean, defaultValue?: any): boolean;
onAddLocalizedString(obj: Base, property: JsonObjectProperty, locStr: LocalizableString, translatedObj: any): void;
onCreateNewTranslateObj(obj: Base, property: JsonObjectProperty, translateObj: any): any;
}
export declare function collectLocalizableStrings(survey: SurveyModel, options: ICollectLocalizableStringsOptions, translateObj?: any): void;