All Components

Globalization

Globalization is a process that combines the translation of component messages and the usage of specific culture locales.

The following example demonstrates how to use the Spanish locale and the increment and decrement button titles.

import { Component } from '@angular/core';

@Component({
    selector: 'my-app',
    template: `
        <kendo-numerictextbox format="c" [value]="10000.10">
            <kendo-numerictextbox-messages
                increment="Incrementar valor"
                decrement="Disminuir valor"
            ></kendo-numerictextbox-messages>
        </kendo-numerictextbox>
    `
})

export class AppComponent {
}
import { LOCALE_ID, NgModule }      from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { InputsModule } from '@progress/kendo-angular-inputs';

import { AppComponent }   from './app.component';

/* Loading CLDR data */
import { load } from '@progress/kendo-angular-intl';
load(
    require('cldr-data/supplemental/likelySubtags.json'),
    require('cldr-data/supplemental/currencyData.json'),
    require('cldr-data/supplemental/weekData.json'),

    require('cldr-data/main/es/numbers.json'),
    require('cldr-data/main/es/currencies.json'),
    require('cldr-data/main/es/dateFields.json'),
    require('cldr-data/main/es/ca-gregorian.json'),
    require('cldr-data/main/es/timeZoneNames.json')
);

@NgModule({
  bootstrap:    [ AppComponent ],
  declarations: [ AppComponent ],
  imports:      [ BrowserModule, BrowserAnimationsModule, InputsModule ],
  providers: [{ provide: LOCALE_ID, useValue: 'es' }]
})

export class AppModule { }
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';

enableProdMode();

const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);

Internationalization

Internationalization (i18n) is the process of applying specific culture locale formats to your application.

The NumericTextBox provides support for internationalization by utilizing the Kendo UI Internationalization package.

For more information on using different locales from the default one, refer to the article on Internationalization. For more information on the date and number formats Kendo UI for Angular supports, refer to the kendo-intl GitHub repository.

Localization

Localization (l10n) is the process of translating the component messages in specific languages.

Built-In Messages

To translate the built-in NumericTextBox messages, you can utilize the Angular i18n framework. For more information on how to achieve this, refer to the article on Localization.

Custom Messages

You can also override individual messages for each NumericTextBox instance by utilizing the attribute bindings. To use them, you do not have to set up the application for i18n.

In i18n applications, message attributes take precedence over localized text from translation files.

The following example demonstrates how to customize the built-in messages of the NumericTextBox.

@Component({
    selector: 'my-app',
    template: `
        <kendo-numerictextbox>
            <kendo-numerictextbox-messages
                increment="Custom increment"
                decrement="Custom decrement"
            ></kendo-numerictextbox-messages>
        </kendo-numerictextbox>
    `
})

class AppComponent {
}
In this article