Skip to content

Commit

Permalink
Merge pull request #121 from AliMD/fix/i18n
Browse files Browse the repository at this point in the history
fix(i18n): access signal issue
  • Loading branch information
alimd authored Mar 22, 2022
2 parents 1c95bb3 + 44a8696 commit 075d3a2
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 075d3a2

Please sign in to comment.