How to use the @delon/theme.zh_CN.tagSelect function in @delon/theme

To help you get started, we’ve selected a few @delon/theme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-alain / delon / packages / abc / tag-select / tag-select.spec.ts View on Github external
it('#i18n', () => {
    const triEl = dl.query(By.css('.tag-select__trigger')).nativeElement as HTMLElement;
    expect(triEl.innerText).toContain(zh_CN.tagSelect.expand);
    injector.get(DelonLocaleService).setLocale(en_US);
    fixture.detectChanges();
    expect(triEl.innerText).toBe(en_US.tagSelect.expand);
  });
});