Localization
The texts Atlas components render on their own — placeholders, button labels, pager and filter phrases — live in the same configuration, so you can translate them once for the whole app.
Translatable texts
The configuration has one text group per component that renders built-in text:
datepicker—placeholder,todayselect—placeholder(also the combobox fallback)multiSelect—placeholder,selectAll,clear,allSelected,nSelecteddataGrid— toolbar, row actions, pager, empty state and filter texts (GridLocale)alert—dismiss(name of the close button of a dismissible alert)dialog—close(name of the dialog's close button)
Placeholders in braces are filled in by the component: {count} in nSelected, {first}, {last} and {total} in the grid pager, {column} in the grid filter labels. Keep them in your translation.
Built-in languages
Four presets ship with the library: ATLAS_LOCALE_EN (en-US), ATLAS_LOCALE_RO (ro-RO), ATLAS_LOCALE_FR (fr-FR) and ATLAS_LOCALE_DE (de-DE). Each is a partial configuration — locale tag, currency and every text group — so you spread it into provideAtlas() or pass it to AtlasConfigService.update().
import { provideAtlas } from '@atlas/components/core';
import { ATLAS_LOCALE_DE } from '@atlas/components/locales';
provideAtlas({
...ATLAS_LOCALE_DE,
icons: appIcons,
});Your own translation
Text groups are deep-merged, so you can override a few strings of a preset or write a full translation for a language Atlas does not ship:
import type { AtlasOptions } from '@atlas/components/core';
export const atlasSpanish: AtlasOptions = {
locale: 'es-ES',
currency: 'EUR',
datepicker: { placeholder: 'Elige una fecha', today: 'Hoy' },
select: { placeholder: 'Selecciona…' },
multiSelect: { nSelected: '{count} seleccionados' },
dataGrid: { search: 'Buscar…', emptyText: 'No hay datos', rowsPerPage: 'Filas por página:' },
};
// app.config.ts
provideAtlas({ ...atlasSpanish, icons: appIcons });Data grid texts
The grid resolves each text from three layers; later layers win:
- The English defaults.
- The
dataGridgroup of the global configuration. - The grid's own
[locale]input (a partialGridLocale).
The Data Grid localization page switches all four built-in languages live.
Texts set by inputs
A placeholder input on select, combobox, datepicker or multi-select wins over the configured text for that one instance. Other components take their texts only from inputs, with English defaults — for example the placeholders of atlas-tags-input, atlas-command and atlas-date-range-picker — so pass translated values there. Labels you write yourself (buttons, headings, aria-labels) are translated with your app's own i18n tooling.