TX Sheet Control

registerLanguage Function

Function

Public function for registerLanguage.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

ES module import: import { registerLanguage } from '@txtextcontrol/tx-sheet-control';.

Syntax

registerLanguage(language: string, resources: LocalizationResources): void

Parameters

ParameterTypeOptionalDescription
languagestringNoValue matching language's declared type and the owning object's validation rules.
resourcesPartial<Record<LocalizationKey, string>>NoValue matching resources's declared type and the owning object's validation rules.

Return Value

void.

Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

import { registerLanguage } from '@txtextcontrol/tx-sheet-control';

const result = registerLanguage('de', { 'ribbon.home': 'Start' });
console.log(result);

See Also