Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/data/i18n/Brazilian Portuguese.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "",
"required": "",
"settings": "",
"typescript": "",
"fieldTypes": {
"checkbox": "",
"code": "",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Chinese Simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "这里没有什么可以展示的",
"required": "必需",
"settings": "设置",
"typescript": "",
"fieldTypes": {
"checkbox": "复选",
"code": "程序代码",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Comments.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "",
"required": "",
"settings": "",
"typescript": "",
"fieldTypes": {
"checkbox": "",
"code": "",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Debug.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "common.nothingToShowFiller",
"required": "common.required",
"settings": "common.settings",
"typescript": "common.typescript",
"fieldTypes": {
"checkbox": "common.fieldTypes.checkbox",
"code": "common.fieldTypes.code",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Dutch.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "Hier is niets te zien!",
"required": "Vereist",
"settings": "Instellingen",
"typescript": "",
"fieldTypes": {
"checkbox": "Selectievakje",
"code": "Codebox",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/English.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"zoomOut": "Zoom out",
"undo": "Undo",
"redo": "Redo",
"typescript": "Allow TypeScript",
"fieldTypes": {
"checkbox": "Checkbox",
"code": "Codebox",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/French.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"nothingToShowFiller": "",
"required": "",
"settings": "",
"typescript": "",
"fieldTypes": {
"checkbox": "",
"code": "",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/German.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "",
"required": "",
"settings": "",
"typescript": "",
"fieldTypes": {
"checkbox": "",
"code": "",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Japanese.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"zoom": "拡大",
"zoomIn": "ズームイン",
"zoomOut": "ズームアウト",
"typescript": "",
"fieldTypes": {
"checkbox": "チェックボックス",
"code": "コード",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Polish.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "",
"required": "",
"settings": "",
"typescript": "",
"fieldTypes": {
"checkbox": "",
"code": "",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Romanian.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "",
"required": "",
"settings": "",
"typescript": "",
"fieldTypes": {
"checkbox": "",
"code": "",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Russian.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "Нечего показывать!",
"required": "Требуется",
"settings": "Настройки",
"typescript": "",
"fieldTypes": {
"checkbox": "Чекбокс",
"code": "Поле с кодом",
Expand Down
2 changes: 2 additions & 0 deletions app/data/i18n/Spanish.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "",
"required": "",
"settings": "",
"typescript": "",
"fieldTypes": {
"checkbox": "",
"code": "",
Expand Down Expand Up @@ -948,6 +949,7 @@
"eventAlreadyExists": "",
"localEventVars": "",
"createEventHint": "",
"typescript": "",
"coreEventsCategories": {
"lifecycle": "",
"actions": "",
Expand Down
1 change: 1 addition & 0 deletions app/data/i18n/Ukranian.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"nothingToShowFiller": "Нема чого показувати!",
"required": "Потрібно",
"settings": "Налаштування",
"typescript": "",
"fieldTypes": {
"checkbox": "Чекбокс",
"code": "Поле з кодом",
Expand Down
141 changes: 139 additions & 2 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"pixi.js-legacy": "5.3.11",
"png2icons": "^2.0.1",
"serve-handler": "^6.1.3",
"sucrase": "^3.25.0",
"terser": "^5.14.2",
"ttf2woff": "^2.0.2"
}
Expand Down
8 changes: 7 additions & 1 deletion src/node_requires/exporter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,13 @@ const exportCtProject = async (

/* User-defined scripts */
for (const script of project.scripts) {
buffer += script.code + ';\n';
if (script.typescript) {
const transform = require("sucrase").transform;
buffer += transform(script.code, {transforms: ["typescript" ]}).code + ';\n';
}
else {
buffer += script.code + ';\n';
}
}

/* passthrough copy of files in the `include` folder */
Expand Down
Loading