Skip to content

Commit

Permalink
fix(i18n): access signal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Mar 22, 2022
1 parent 44a055b commit 097b354
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package/i18n/src/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {logger, _localize, configuration} from './core';
import {localChangeSignal} from './signal';
import type {I18nOptions} from './type';
import {localChangeSignal, l10nResourceChangeSignal} from './signal';
import type {I18nOptions, Local} from './type';

export {localChangeSignal, l10nResourceChangeSignal};
export type {Local};

/**
* Initial and config the internationalization.
Expand Down
1 change: 1 addition & 0 deletions package/i18n/src/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ declare global {
'l10n-resource-change': Local;
}
}

export const l10nResourceChangeSignal = new SignalInterface('l10n-resource-change');
export const localChangeSignal = new SignalInterface('local-change');

0 comments on commit 097b354

Please sign in to comment.