Skip to main content
Neural UIv2.0.0Documentation
View v1 GitHub

Internationalization and RTL

Separate translated content, regional formatting and text direction in your application.

Three separate responsibilities

Language describes your applicationโ€™s translated text. Locale configures regional formatting in components that consume it. Direction specifies LTR or RTL. They can be related, but changing one does not automatically configure the other two.

The language selector on this documentation site is not a Core API for another application.

Set optional regional defaults

Use provideNeuralUI for a shared locale and, when relevant, an IANA timeZone. The default locale comes from Angular LOCALE_ID. Your application still supplies labels and validation messages. These settings do not imply universal automatic translation or a reactive global language switch.

app.config.ts
import { ApplicationConfig } from '@angular/core';
import { provideNeuralUI } from '@neural-ui/core';

export const appConfig: ApplicationConfig = {
  providers: [provideNeuralUI({ locale: 'es-ES', timeZone: 'Europe/Madrid' })],
};

See locale-dependent Calendar formatting

Calendar consumes the global locale unless its locale input overrides it. This example passes en-US or es-ES explicitly so you can compare the month and weekday labels on this bilingual page. selectedDate is a fixed day; selection remains owned by the application. Calendarโ€™s built-in EN/ES labels are specific to Calendar, not a universal Core translation service.

See locale-dependent Calendar formatting

Scroll the calendar grid horizontally to see the full week. Keyboard focus also moves through the days.

January 2026

Mon
Tue
Wed
Thu
Fri
Sat
Sun

Thursday, January 15

0 events

No events

Selected date: 2026-1-15

Apply direction to a surface

Set dir="rtl" on the intended document or surface. In Tabs, left/right arrows move focus according to the computed direction; Enter or Space activates the focused tab. Try the keyboard below. dir changes direction, not the language of the supplied labels. Use logical CSS properties for your own layout.

Apply direction to a surface

Project details

Keep server and browser settings aligned

Supply the same initial regional settings and translated text on server and browser. Do not silently replace an editable value when changing display language. Test your applicationโ€™s supported locales and directions, including mixed-language content.