Refactor i18n, make component use the hook directly
This commit is contained in:
@ -1,2 +1,10 @@
|
||||
export type { I18n, MessageKey } from "./i18n";
|
||||
export { createUseI18n, fallbackLanguageTag } from "./i18n";
|
||||
export type { MessageKey } from "./i18n";
|
||||
import { createUseI18n } from "./i18n";
|
||||
export { createUseI18n };
|
||||
export { fallbackLanguageTag } from "./i18n";
|
||||
|
||||
const { useI18n, ofTypeI18n } = createUseI18n({});
|
||||
|
||||
export type I18n = typeof ofTypeI18n;
|
||||
|
||||
export { useI18n };
|
||||
|
Reference in New Issue
Block a user