registerLanguage Function
Public function for registerLanguage.
Package: @txtextcontrol/tx-sheet-control/angular. Version: 2.0.0.
ES module import: import { registerLanguage } from '@txtextcontrol/tx-sheet-control';.
Syntax
registerLanguage(language: string, resources: LocalizationResources): void
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
language | string | No | Value matching language's declared type and the owning object's validation rules. |
resources | Partial<Record<LocalizationKey, string>> | No | Value 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/angular';
const result = registerLanguage('de', { 'ribbon.home': 'Start' });
console.log(result);