Skip to content

Localization

Thomas Möller edited this page Apr 5, 2022 · 5 revisions

Class name

Localization

Purpose / Description

This class contains the properties related to the localization and the related script.

Methods

  • none

Properties


Detailed description

The following sections contain a detailed description of the properties and methods.

CDN

Description:

With this property you pass the url of the cdn of the localization file.

Default value:

--

Sample code:

myPivot.Localization.CDN = "https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.23.0/pivot.de.min.js"

Related to:

Source, PathFilename

Locale

Description:

This property controls the localization.

Default value:

{empty} resulting in "en"

Sample code:

myPivot.Localization.Locale = "de"

Related to:

--

PathFilename

Description:

With this property you pass the path to the localization file.

Default value:

--

Sample code:

myPivot.Localization.PathFilename = CurrentProject.Path & "\pivot.de.min.js"

Related to:

Source, CDN

Source

Description:

With this property you can specify where the localization file is located.

Possible values are:

  • CDN
  • LocalFile

When you choose "CDN" then the url in the property CDN is inserted to the html file.

When you choose "LocalFile" then the path and file name in the property PathFilename is inserted to the html file.

Default value:

CDN

Sample code:

myPivot.Localization.Source = ptScriptSource.CDN

Related to:

CDN, PathFilename