|
|
|
|
@ -30,9 +30,15 @@ import { comboboxMorfo } from '$uix/morfo/components/combobox';
|
|
|
|
|
import { commandMorfo } from '$uix/morfo/components/command';
|
|
|
|
|
import { drawerMorfo } from '$uix/morfo/components/drawer';
|
|
|
|
|
import { feedMorfo } from '$uix/morfo/components/feed';
|
|
|
|
|
import { listboxMorfo } from '$uix/morfo/components/listbox';
|
|
|
|
|
import { meterMorfo } from '$uix/morfo/components/meter';
|
|
|
|
|
import { navigationMenuMorfo } from '$uix/morfo/components/navigation-menu';
|
|
|
|
|
import { progressMorfo } from '$uix/morfo/components/progress';
|
|
|
|
|
import { scrollAreaMorfo } from '$uix/morfo/components/scroll-area';
|
|
|
|
|
import { searchFieldMorfo } from '$uix/morfo/components/search-field';
|
|
|
|
|
import { splitterMorfo } from '$uix/morfo/components/splitter';
|
|
|
|
|
import { stepperMorfo } from '$uix/morfo/components/stepper';
|
|
|
|
|
import { treeViewMorfo } from '$uix/morfo/components/tree-view';
|
|
|
|
|
|
|
|
|
|
const minimalLang = { schema: {} satisfies LangNode, defaultLocale: 'es' as const };
|
|
|
|
|
const bilingualPrefs = standardPrefsDimensions({
|
|
|
|
|
@ -207,6 +213,20 @@ describe('createActiveUix (standalone)', () => {
|
|
|
|
|
expect(uix.langs.t('components.command.list')).toBe('Paleta de comandos');
|
|
|
|
|
expect(uix.langs.t('components.drawer.trigger')).toBe('Abrir cajón');
|
|
|
|
|
expect(uix.langs.t('components.feed.label')).toBe('Feed');
|
|
|
|
|
registerMorfo(listboxMorfo);
|
|
|
|
|
registerMorfo(navigationMenuMorfo);
|
|
|
|
|
registerMorfo(treeViewMorfo);
|
|
|
|
|
registerMorfo(stepperMorfo);
|
|
|
|
|
registerMorfo(splitterMorfo);
|
|
|
|
|
registerMorfo(scrollAreaMorfo);
|
|
|
|
|
expect(uix.langs.t('components.listbox.label')).toBe('Opciones');
|
|
|
|
|
expect(uix.langs.t('components.navigation-menu.label')).toBe('Principal');
|
|
|
|
|
expect(uix.langs.t('components.tree-view.label')).toBe('Árbol');
|
|
|
|
|
expect(uix.langs.t('components.stepper.list')).toBe('Pasos');
|
|
|
|
|
expect(uix.langs.t('components.splitter.resize')).toBe('Redimensionar paneles');
|
|
|
|
|
expect(uix.langs.t('components.scroll-area.scrollbar-horizontal')).toBe(
|
|
|
|
|
'Barra de desplazamiento horizontal'
|
|
|
|
|
);
|
|
|
|
|
} finally {
|
|
|
|
|
uix.dispose();
|
|
|
|
|
_resetMorfoRegistryForTesting();
|
|
|
|
|
|