diff --git a/packages/i18n/README.md b/packages/i18n/README.md index 7f233a05ad..5c8ad66f57 100644 --- a/packages/i18n/README.md +++ b/packages/i18n/README.md @@ -7,7 +7,7 @@ ```tsx import { useAFFiNEI18N } from '@affine/i18n/hooks'; - +import { LOCALES, useI18N } from '@affine/i18n'; // src/resources/en.json // { // 'Text': 'some text', @@ -16,7 +16,7 @@ import { useAFFiNEI18N } from '@affine/i18n/hooks'; const App = () => { const t = useAFFiNEI18N(); - + const i18n = useI18N(); const changeLanguage = (language: string) => { i18n.changeLanguage(language); }; @@ -24,9 +24,20 @@ const App = () => { return (
{t['Workspace Settings']()}
- - - + <> + {LOCALES.map(option => { + return ( + + ); + })} +
); };