ResourceManager.detachResourceFiles

Syntax

detachResourceFiles(cultureInfo: PP.CultureInfo);

Parameters

cultureInfo. The language for which you want to detach resource files.

Description

The detachResourceFiles method detaches all resource files for a specified language.

Example

Before executing this example the user should start the scenario given in the page with description of the ResourceManager.load method. Detach all resource files for English language and check operation execution result:

// Detach resource files for English language
resourceManager.detachResourceFiles(PP.Cultures.en);
// Determine the line by the key dateTimeEditMonthNames1 in various languages
userProc();

After example execution the browser console displays the value that corresponds to the resource key dateTimeEditMonthNames1 for Russian and English languages:

Line by the key dateTimeEditMonthNames1 for Russian language: January

Line by the dateTimeEditMonthNames1 for English language is not determined
 

As it is clear, resource files for English language are removed.

See also:

ResourceManager