diff --git a/package/i18n/src/i18n.ts b/package/i18n/src/i18n.ts index 8cec37ff3..8f999f985 100644 --- a/package/i18n/src/i18n.ts +++ b/package/i18n/src/i18n.ts @@ -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. diff --git a/package/i18n/src/signal.ts b/package/i18n/src/signal.ts index cc62c559c..4f5420859 100644 --- a/package/i18n/src/signal.ts +++ b/package/i18n/src/signal.ts @@ -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');