- Layout Settings Coming Soon...
+ {t('ComingSoon')}
);
};
diff --git a/libs/datasource/i18n/README.md b/libs/datasource/i18n/README.md
index c454be380a..31ab1d66a1 100644
--- a/libs/datasource/i18n/README.md
+++ b/libs/datasource/i18n/README.md
@@ -2,10 +2,13 @@
## Usages
+- Update missing translations into the base resources, a.k.a the `src/resources/en.json`
+- Replace literal text with translation keys
+
```tsx
import { useTranslation } from '@toeverything/datasource/i18n';
-// base.json
+// src/resources/en.json
// {
// 'Text': 'some text',
// 'Switch to language': 'Switch to {{language}}', // <- you can interpolation by curly brackets
@@ -33,7 +36,14 @@ const App = () => {
};
```
-## How to sync translations
+## How the i18n workflow works?
+
+- When the `src/resources/en.json`(base language) updated and merged to the develop branch, will trigger the `languages-sync` action.
+- The `languages-sync` action will check the base language and add missing translations to the Tolgee platform.
+- This way, partners from the community can update the translations.
+- Finally, the `languages-download` action will regularly download the latest translation resources from the Tolgee platform.
+
+## How to sync translations manually
- Set token as environment variable
diff --git a/libs/datasource/i18n/project.json b/libs/datasource/i18n/project.json
index bac263e222..8535bfb237 100644
--- a/libs/datasource/i18n/project.json
+++ b/libs/datasource/i18n/project.json
@@ -2,7 +2,7 @@
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/datasource/i18n/src",
"projectType": "library",
- "tags": ["datasource"],
+ "tags": ["datasource:i18n"],
"targets": {
"build": {
"executor": "@nrwl/web:rollup",
diff --git a/libs/datasource/i18n/src/resources/en.json b/libs/datasource/i18n/src/resources/en.json
index e243d71db1..aae42bd05d 100644
--- a/libs/datasource/i18n/src/resources/en.json
+++ b/libs/datasource/i18n/src/resources/en.json
@@ -20,5 +20,9 @@
"Import Workspace": "Import Workspace",
"Export Workspace": "Export Workspace",
"Last edited by": "Last edited by {{name}}",
- "Logout": "Logout"
+ "Logout": "Logout",
+ "Delete": "Delete",
+ "Turn into": "Turn into",
+ "Add A Below Block": "Add A Below Block",
+ "Divide Here As A New Group": "Divide Here As A New Group"
}