Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(i18n): access signal issue #121

Merged
merged 2 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');