Zum Hauptinhalt springen

installLocales

installLocales(options, resultOptions?): string[]

Installs one global property per language, following the naming convention <baseName>_<language>.

Parameters​

options​

InstallLocalesOptions

The base name and the locale objects keyed by language

resultOptions?​

InstallResultOptions

Optional installer step options; every created global property is reported via appendToResultSuccess

Returns​

string[]

The names of the created global properties

Throws​

When a locale could not be installed

Example​

const locales = { de, en };
export function install(options: InstallStepInputOptions): void {
installLocales({ baseName: "ou.sp.ImportFiles", locales }, options);
}