← All developer guidesDeveloper guide

Internationalization

Exact locale imports keep translated labels and core comparison behavior tree-shakable while platform Intl handles values.

Official locale packs

Exact imports are available for English, French, German, Spanish, Arabic, Hindi, Japanese, Simplified Chinese, and Brazilian Portuguese.

Negotiation and fallback

Choose a locale from user preferences, declare a fallback, and lazy-load only the selected pack. Arabic includes RTL metadata and direction.

Application terminology

Extend a locale pack with product-specific labels while retaining built-in plurals, dates, numbers, lists, and relative-time formatters.

Apply a locale to one table
import { dataTableLocaleOptions } from 'wts-data-table/i18n';
import { arLocale } from 'wts-data-table/locales/ar';

new DataTable({
  ...options,
  ...dataTableLocaleOptions(arLocale)
});