[]
        
(Showing Draft Content)

GC.Spread.Common.CultureManager

Class: CultureManager

Spread.Common.CultureManager

Table of contents

Constructors

Methods

Constructors

constructor

new CultureManager()

Represent a culture manager.

Methods

addCultureInfo

Static addCultureInfo(cultureName, culture, language?): void

Adds the cultureInfo or custom language into the culture manager.

static

Parameters

Name Type Description
cultureName string The culture name to set.
culture CultureInfo -
language? object The custom language set to the culture. If already set, it will overwrite the old language.

Returns

void


culture

Static culture(cultureName?): string

Get or set the Sheets culture.

static

Parameters

Name Type Description
cultureName? string The culture name to get.

Returns

string

. The current culture name of Sheets.


getCultureInfo

Static getCultureInfo(cultureName): CultureInfo

Gets the specified cultureInfo. If no culture name, get current cultureInfo.

static

Parameters

Name Type Description
cultureName string | number Culture name or culture ID

Returns

CultureInfo

The specified cultureInfo object.


getLanguage

Static getLanguage(cultureName): object

Gets the specified custom language.

static

Parameters

Name Type Description
cultureName string The culture name to get.

Returns

object

The specified object. Null if not define the language.


getResources

Static getResources(cultureName?): object

Gets the specified or current working resources.

static

Parameters

Name Type Description
cultureName? string The culture name to get. If the cultureName is null, will return the current working resources.

Returns

object

The specified or current working resources. Null if not define the language.