Skip to content

Commit c539c3e

Browse files
committed
ci: ne core.ai powered language translation framework
1 parent 6b7ef38 commit c539c3e

File tree

9 files changed

+402
-76
lines changed

9 files changed

+402
-76
lines changed

.github/workflows/tranlate-languages.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ jobs:
1616
run: |
1717
npm ci
1818
npm run _translateStrings
19-
ls -al docs
19+
ls -al src/nls
2020
shell: bash
2121

22+
- name: Check translation errors file
23+
id: check-errors
24+
run: |
25+
if [ -f src/nls/errors.txt ]; then
26+
echo "errors_found=true" >> $GITHUB_ENV
27+
else
28+
echo "errors_found=false" >> $GITHUB_ENV
29+
fi
30+
2231
- name: Create Translation Pull Request
2332
id: cpr
2433
uses: peter-evans/create-pull-request@v4
@@ -32,6 +41,9 @@ jobs:
3241
body: |
3342
Update string translations
3443
- Auto-generated by `tranlate-languages.yml` action
44+
45+
Errors:
46+
${{ env.errors_found == 'true' && 'Errors: Some errors were found, please see GitHub Actions logs.' || 'No Translation Errors. All good!' }}
3547
- name: Check outputs
3648
if: ${{ steps.cpr.outputs.pull-request-number }}
3749
run: |

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ test/thirdparty/jasmine-reporters
7575
/build/config.json
7676
/build/jsdoc.json
7777

78+
# translations
79+
/src/nls/errors.txt
80+
7881

7982
# ignore everything in the dev extension directory EXCEPT the README
8083
# (so that the directory is non-empty and can be in git)

docs/API-Reference/command/Commands.md

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,3 +885,165 @@ Hides the sidebar
885885
Shows the sidebar
886886

887887
**Kind**: global variable
888+
<a name="CMD_GIT_INIT"></a>
889+
890+
## CMD\_GIT\_INIT
891+
Initializes a new git repository
892+
893+
**Kind**: global variable
894+
<a name="CMD_GIT_CLONE"></a>
895+
896+
## CMD\_GIT\_CLONE
897+
Clones a git repository
898+
899+
**Kind**: global variable
900+
<a name="CMD_GIT_CLONE_WITH_URL"></a>
901+
902+
## CMD\_GIT\_CLONE\_WITH\_URL
903+
Clones a git repository with a specific URL
904+
905+
**Kind**: global variable
906+
<a name="CMD_GIT_SETTINGS_COMMAND_ID"></a>
907+
908+
## CMD\_GIT\_SETTINGS\_COMMAND\_ID
909+
Opens git settings
910+
911+
**Kind**: global variable
912+
<a name="CMD_GIT_CLOSE_UNMODIFIED"></a>
913+
914+
## CMD\_GIT\_CLOSE\_UNMODIFIED
915+
Closes unmodified files
916+
917+
**Kind**: global variable
918+
<a name="CMD_GIT_CHECKOUT"></a>
919+
920+
## CMD\_GIT\_CHECKOUT
921+
Checks out a branch or commit
922+
923+
**Kind**: global variable
924+
<a name="CMD_GIT_RESET_HARD"></a>
925+
926+
## CMD\_GIT\_RESET\_HARD
927+
Performs a hard reset
928+
929+
**Kind**: global variable
930+
<a name="CMD_GIT_RESET_SOFT"></a>
931+
932+
## CMD\_GIT\_RESET\_SOFT
933+
Performs a soft reset
934+
935+
**Kind**: global variable
936+
<a name="CMD_GIT_RESET_MIXED"></a>
937+
938+
## CMD\_GIT\_RESET\_MIXED
939+
Performs a mixed reset
940+
941+
**Kind**: global variable
942+
<a name="CMD_GIT_TOGGLE_PANEL"></a>
943+
944+
## CMD\_GIT\_TOGGLE\_PANEL
945+
Toggles the git panel
946+
947+
**Kind**: global variable
948+
<a name="CMD_GIT_GOTO_NEXT_CHANGE"></a>
949+
950+
## CMD\_GIT\_GOTO\_NEXT\_CHANGE
951+
Goes to next git change
952+
953+
**Kind**: global variable
954+
<a name="CMD_GIT_GOTO_PREVIOUS_CHANGE"></a>
955+
956+
## CMD\_GIT\_GOTO\_PREVIOUS\_CHANGE
957+
Goes to previous git change
958+
959+
**Kind**: global variable
960+
<a name="CMD_GIT_COMMIT_CURRENT"></a>
961+
962+
## CMD\_GIT\_COMMIT\_CURRENT
963+
Commits current file changes
964+
965+
**Kind**: global variable
966+
<a name="CMD_GIT_COMMIT_ALL"></a>
967+
968+
## CMD\_GIT\_COMMIT\_ALL
969+
Commits all changes
970+
971+
**Kind**: global variable
972+
<a name="CMD_GIT_FETCH"></a>
973+
974+
## CMD\_GIT\_FETCH
975+
Fetches from remote
976+
977+
**Kind**: global variable
978+
<a name="CMD_GIT_PULL"></a>
979+
980+
## CMD\_GIT\_PULL
981+
Pulls from remote
982+
983+
**Kind**: global variable
984+
<a name="CMD_GIT_PUSH"></a>
985+
986+
## CMD\_GIT\_PUSH
987+
Pushes to remote
988+
989+
**Kind**: global variable
990+
<a name="CMD_GIT_REFRESH"></a>
991+
992+
## CMD\_GIT\_REFRESH
993+
Refreshes git status
994+
995+
**Kind**: global variable
996+
<a name="CMD_GIT_TAG"></a>
997+
998+
## CMD\_GIT\_TAG
999+
Creates a git tag
1000+
1001+
**Kind**: global variable
1002+
<a name="CMD_GIT_DISCARD_ALL_CHANGES"></a>
1003+
1004+
## CMD\_GIT\_DISCARD\_ALL\_CHANGES
1005+
Discards all changes
1006+
1007+
**Kind**: global variable
1008+
<a name="CMD_GIT_UNDO_LAST_COMMIT"></a>
1009+
1010+
## CMD\_GIT\_UNDO\_LAST\_COMMIT
1011+
Undoes the last commit
1012+
1013+
**Kind**: global variable
1014+
<a name="CMD_GIT_CHANGE_USERNAME"></a>
1015+
1016+
## CMD\_GIT\_CHANGE\_USERNAME
1017+
Changes git username
1018+
1019+
**Kind**: global variable
1020+
<a name="CMD_GIT_CHANGE_EMAIL"></a>
1021+
1022+
## CMD\_GIT\_CHANGE\_EMAIL
1023+
Changes git email
1024+
1025+
**Kind**: global variable
1026+
<a name="CMD_GIT_GERRIT_PUSH_REF"></a>
1027+
1028+
## CMD\_GIT\_GERRIT\_PUSH\_REF
1029+
Pushes to Gerrit code review
1030+
1031+
**Kind**: global variable
1032+
<a name="CMD_GIT_AUTHORS_OF_SELECTION"></a>
1033+
1034+
## CMD\_GIT\_AUTHORS\_OF\_SELECTION
1035+
Shows authors of selected code
1036+
1037+
**Kind**: global variable
1038+
<a name="CMD_GIT_AUTHORS_OF_FILE"></a>
1039+
1040+
## CMD\_GIT\_AUTHORS\_OF\_FILE
1041+
Shows authors of current file
1042+
1043+
**Kind**: global variable
1044+
<a name="CMD_GIT_TOGGLE_UNTRACKED"></a>
1045+
1046+
## CMD\_GIT\_TOGGLE\_UNTRACKED
1047+
Toggles display of untracked files
1048+
1049+
**Kind**: global variable

docs/API-Reference/command/KeyBindingManager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Returns record(s) for valid key binding(s).
9090
| Param | Type | Description |
9191
| --- | --- | --- |
9292
| command | <code>string</code> \| <code>Command</code> | A command ID or command object |
93-
| keyBindings | <code>Object</code> | A single key binding or an array of keybindings. In an array of keybinding `platform` property is also available. Example: "Shift-Cmd-F". Mac and Win key equivalents are automatically mapped to each other. Use displayKey property to display a different string (e.g. "CMD+" instead of "CMD="). |
93+
| keyBindings | <code>Object</code> | A single key binding or an array of keybindings. In an array of keybinding `platform` property is also available. Example: "Shift-Cmd-F". Mac and Win key equivalents are automatically mapped to each other. Use displayKey property to display a different string (e.g. "CMD+" instead of "CMD="). if browserOnly is true, then the shortcut will only apply in browser if nativeOnly is set, the shortcut will only apply in native apps |
9494
| platform | <code>string</code> | The target OS of the keyBindings either "mac", "win" or "linux". If undefined, all platforms not explicitly defined will use the key binding. NOTE: If platform is not specified, Ctrl will be replaced by Cmd for "mac" platform |
9595
| options | <code>object</code> | |
9696
| options.isMenuShortcut | <code>boolean</code> | this allows alt-key shortcuts to be registered. |

0 commit comments

Comments
 (0)