There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
feat: export Trans component
JimmFlydc4a69593bbd
diff --git a/packages/i18n/src/index.ts b/packages/i18n/src/index.tsindex a3fd46a1d2..cef066bb29 100644--- a/packages/i18n/src/index.ts+++ b/packages/i18n/src/index.ts@@ -1,5 +1,5 @@import i18next, { Resource } from 'i18next';-import { initReactI18next, useTranslation } from 'react-i18next';+import { Trans, initReactI18next, useTranslation } from 'react-i18next';import { LOCALES } from './resources/index.js';import type en_US from './resources/en.json';@@ -23,7 +23,7 @@ declare module 'react-i18next' {// const STORAGE_KEY = 'i18n_lng';-export { i18n, useTranslation, LOCALES };+export { Trans, i18n, useTranslation, LOCALES };const resources = LOCALES.reduce<Resource>((acc, { tag, res }) => ({ ...acc, [tag]: { translation: res } }),