SetLocale

function SetLocale(LCID: number = null): void

Description

Sets a locale to the document.

Parameters

LCIDnumberdefault: null

The locale specified.

Returns

void

Try It

var oWorksheet = Api.GetActiveSheet();
Api.SetLocale("en-CA");
oWorksheet.GetRange("A1").SetValue("A sample spreadsheet with the language set to English (Canada).");

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).