mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 12:12:51 +03:00
chore(i18n): update package
This commit is contained in:
parent
54f1db6fdc
commit
1018149ca4
@ -8,7 +8,7 @@ import { useTranslation } from '@toeverything/datasource/i18n';
|
|||||||
// base.json
|
// base.json
|
||||||
// {
|
// {
|
||||||
// 'Text': 'some text',
|
// 'Text': 'some text',
|
||||||
// 'Switch to language': 'Switch to {language}',
|
// 'Switch to language': 'Switch to {{language}}', // <- you can interpolation by curly brackets
|
||||||
// };
|
// };
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
@ -41,10 +41,12 @@ const App = () => {
|
|||||||
export TOLGEE_API_KEY=tgpak_XXXXXXX
|
export TOLGEE_API_KEY=tgpak_XXXXXXX
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run the `sync` script from package script
|
- Run the `sync-languages:check` to check all languages
|
||||||
|
- Run the `sync-languages` script to add new keys to the tolgee platform
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
|
- [AFFiNE | Tolgee](https://i18n.affine.pro/)
|
||||||
|
- [Tolgee Documentation](https://tolgee.io/docs/)
|
||||||
- [i18next](https://www.i18next.com/)
|
- [i18next](https://www.i18next.com/)
|
||||||
- [react-i18next](https://react.i18next.com/)
|
- [react-i18next](https://react.i18next.com/)
|
||||||
- [Tolgee](https://tolgee.io/docs/)
|
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
"name": "@toeverything/datasource/i18n",
|
"name": "@toeverything/datasource/i18n",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"sync": "NODE_OPTIONS=--experimental-fetch ts-node src/scripts/sync.ts"
|
"sync-languages": "NODE_OPTIONS=--experimental-fetch ts-node src/scripts/sync.ts",
|
||||||
|
"sync-languages:check": "pnpm run sync-languages --check"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"i18next": "^21.9.1",
|
"i18next": "^21.9.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user