|
|
|
|
@ -26,6 +26,8 @@ import type { LangNode } from '$libs/langs';
|
|
|
|
|
import { standardPrefsDimensions } from '$prefs';
|
|
|
|
|
import { _resetMorfoRegistryForTesting, registerMorfo, v, type Morfo } from '$uix/morfo';
|
|
|
|
|
import { fileUploadMorfo } from '$uix/morfo/components/file-upload';
|
|
|
|
|
import { meterMorfo } from '$uix/morfo/components/meter';
|
|
|
|
|
import { progressMorfo } from '$uix/morfo/components/progress';
|
|
|
|
|
|
|
|
|
|
const minimalLang = { schema: {} satisfies LangNode, defaultLocale: 'es' as const };
|
|
|
|
|
const bilingualPrefs = standardPrefsDimensions({
|
|
|
|
|
@ -186,6 +188,10 @@ describe('createActiveUix (standalone)', () => {
|
|
|
|
|
expect(uix.langs.t('components.file-upload.dropzone')).toBe('Subir archivos');
|
|
|
|
|
expect(uix.langs.t('components.file-upload.list')).toBe('Archivos seleccionados');
|
|
|
|
|
expect(uix.langs.ts('#?common.buttons.clear|Clear all')).toBe('Limpiar todo');
|
|
|
|
|
registerMorfo(progressMorfo);
|
|
|
|
|
registerMorfo(meterMorfo);
|
|
|
|
|
expect(uix.langs.t('components.progress.label')).toBe('Cargando');
|
|
|
|
|
expect(uix.langs.t('components.meter.label')).toBe('Medidor');
|
|
|
|
|
} finally {
|
|
|
|
|
uix.dispose();
|
|
|
|
|
_resetMorfoRegistryForTesting();
|
|
|
|
|
|