Skip to content

Commit 10dc34d

Browse files
author
FalkWolsky
committed
Introducing a translation Script
1 parent 49f6023 commit 10dc34d

File tree

14 files changed

+3201
-5152
lines changed

14 files changed

+3201
-5152
lines changed

client/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"start": "yarn workspace lowcoder start",
1414
"start-win": "LOWCODER_API_SERVICE_URL=http://localhost:3000 yarn start",
1515
"start:ee": "REACT_APP_EDITION=enterprise yarn workspace lowcoder start",
16+
"translate": "node --loader ts-node/esm ./scripts/translate.js",
1617
"build": "yarn node ./scripts/build.js",
1718
"test": "jest && yarn workspace lowcoder-comps test",
1819
"prepare": "yarn workspace lowcoder prepare",
@@ -53,6 +54,7 @@
5354
"rimraf": "^3.0.2",
5455
"shelljs": "^0.8.5",
5556
"svgo": "^3.0.0",
57+
"ts-node": "^10.4.0",
5658
"typescript": "^4.8.4",
5759
"whatwg-fetch": "^3.6.2"
5860
},

client/packages/lowcoder/src/i18n/locales/de copy_

Lines changed: 2948 additions & 0 deletions
Large diffs are not rendered by default.

client/packages/lowcoder/src/i18n/locales/de.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import table from "./componentDocExtra/table.md?url";
1+
// import table from "./componentDocExtra/table.md?url";
22
import { en } from "./en";
33

44
export const de: typeof en = {
@@ -2773,10 +2773,10 @@ export const de: typeof en = {
27732773
"title": "Titel",
27742774
"selectBackground": "Ausgewählter Hintergrund"
27752775
},
2776-
"componentDocExtra": {
2776+
/* "componentDocExtra": {
27772777
...en.componentDocExtra,
27782778
"table": table,
2779-
},
2779+
}, */
27802780
"idSource": {
27812781
...en.idSource,
27822782
"title": "OAuth-Anbieter",

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import table from "./componentDocExtra/table.md?url";
1+
// import table from "./componentDocExtra/table.md?url";
22

33
export const en = {
44
"productName": "Lowcoder",
@@ -3283,9 +3283,9 @@ export const en = {
32833283
"title": "Title",
32843284
"selectBackground": "Selected Background"
32853285
},
3286-
"componentDocExtra": {
3286+
/*"componentDocExtra": {
32873287
"table": table,
3288-
},
3288+
},*/
32893289
"idSource": {
32903290
"title": "User Authentication Provider",
32913291
"form": "Email",

client/packages/lowcoder/src/i18n/locales/it.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { en } from "./en";
1+
import { en } from "../locales/en";
22

33
export const it: typeof en = {
44
...en,

0 commit comments

Comments
 (0)