How to use the @aurelia/i18n.Signals.RT_SIGNAL function in @aurelia/i18n

To help you get started, we’ve selected a few @aurelia/i18n 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 aurelia / aurelia / packages / __tests__ / e2e / src / plugins / sut-i18n.ts View on Github external
public changeMyDate() {
    this.myDate.setFullYear(this.myDate.getFullYear() - 1);
    this.signaler.dispatchSignal(Signals.RT_SIGNAL);
  }
}
github aurelia / aurelia / packages / __tests__ / i18n / t / translation-integration.spec.ts View on Github external
await ctx.scheduler.queueMacroTask(delta => {
        ctx.container.get(ISignaler).dispatchSignal(Signals.RT_SIGNAL);
        ctx.scheduler.getRenderTaskQueue().flush();
        assertTextContent(host, 'span', `${Math.round(delta / 1000)} seconds ago`);
      }, { delay: 3000 }).result;
    });
github aurelia / aurelia / packages / __tests__ / i18n / t / translation-integration.spec.ts View on Github external
await ctx.scheduler.queueMacroTask(delta => {
        ctx.container.get(ISignaler).dispatchSignal(Signals.RT_SIGNAL);
        ctx.scheduler.getRenderTaskQueue().flush();
        assertTextContent(host, 'span', `${Math.round(delta / 1000)} seconds ago`);
      }, { delay: 3000 }).result;
    });