ebs.changeCulture
(FintechOS 24.3.2 and later)
Changes the localization of the user interface.
Syntax
Copy
function ebs.changeCulture(culture: string, reloadPage?: boolean) : Promise<void>;
| Parameter | Type | Description |
|---|---|---|
culture
|
string | The .NET culture code of the desired localization. Make sure that the corresponding culture has been added to the available languages. |
|
|
boolean | Set to true to reload the page after the culture is changed. Default: false. |
Response
Returns a void promise object, allowing you to associate handlers in case of success or failure.
Examples
This script changes the culture to en-GB and, if successful, reloads the page. If an error occurs, it is logged to the console.
Copy
ebs.changeCulture('en-GB', true).catch((e) => {
console.error(e);
});
This script changes the culture to ro-RO, but does not reload the page. If an error occurs, it is logged to the console.
Copy
ebs.changeCulture('ro-RO')
.then(() => {
console.log('Culture changed');
})
.catch((e) => {
console.error(e);
});