Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
feat: update source content
Browse files Browse the repository at this point in the history
  • Loading branch information
electron-bot committed Aug 17, 2021
1 parent 0aea777 commit 3bf63b9
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 275 deletions.
6 changes: 3 additions & 3 deletions content/en-US/docs/api/browser-window.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
* `parent` BrowserWindow (optional) - Specify parent window. Default is `null`.
* `modal` Boolean (optional) - Whether this is a modal window. This only works when the
window is a child window. Default is `false`.
* `acceptFirstMouse` Boolean (optional) - Whether the web view accepts a single
mouse-down event that simultaneously activates the window. Default is
`false`.
* `acceptFirstMouse` Boolean (optional) - Whether clicking an inactive window will also
click through to the web contents. Default is `false` on macOS. This option is not
configurable on other platforms.
* `disableAutoHideCursor` Boolean (optional) - Whether to hide cursor when typing.
Default is `false`.
* `autoHideMenuBar` Boolean (optional) - Auto hide the menu bar unless the `Alt`
Expand Down
2 changes: 1 addition & 1 deletion content/en-US/docs/api/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const template = [
{ role: 'services' },
{ type: 'separator' },
{ role: 'hide' },
{ role: 'hideothers' },
{ role: 'hideOthers' },
{ role: 'unhide' },
{ type: 'separator' },
{ role: 'quit' }
Expand Down
30 changes: 30 additions & 0 deletions content/en-US/docs/api/webview-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,19 @@ this purpose.

Calling `event.preventDefault()` does __NOT__ have any effect.

### Event: 'did-start-navigation'

Returns:

* `url` String
* `isInPlace` Boolean
* `isMainFrame` Boolean
* `frameProcessId` Integer
* `frameRoutingId` Integer

Emitted when any frame (including main) starts navigating. `isInPlace` will be
`true` for in-page navigations.

### Event: 'did-navigate'

Returns:
Expand All @@ -854,6 +867,23 @@ This event is not emitted for in-page navigations, such as clicking anchor links
or updating the `window.location.hash`. Use `did-navigate-in-page` event for
this purpose.

### Event: 'did-frame-navigate'

Returns:

* `url` String
* `httpResponseCode` Integer - -1 for non HTTP navigations
* `httpStatusText` String - empty for non HTTP navigations,
* `isMainFrame` Boolean
* `frameProcessId` Integer
* `frameRoutingId` Integer

Emitted when any frame navigation is done.

This event is not emitted for in-page navigations, such as clicking anchor links
or updating the `window.location.hash`. Use `did-navigate-in-page` event for
this purpose.

### Event: 'did-navigate-in-page'

Returns:
Expand Down
590 changes: 343 additions & 247 deletions content/en-US/electron-api.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"upload-crowdin-glossary": "ts-node script/upload-crowdin-glossary.ts",
"automerge": "ts-node ./script/automerge.ts"
},
"electronLatestStableTag": "v13.1.9",
"electronLatestStableTag": "v13.2.0",
"engines": {
"node": ">=10"
}
Expand Down
38 changes: 19 additions & 19 deletions stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
{
"name": "Chinese Simplified",
"code": "zh-CN",
"phrases": "14321",
"phrases": "14334",
"translated": "8393",
"approved": "8120",
"words": "155529",
"words": "155573",
"words_translated": "83487",
"words_approved": "81035",
"translated_progress": 53,
Expand All @@ -15,23 +15,23 @@
{
"name": "French",
"code": "fr",
"phrases": "14321",
"translated": "8204",
"phrases": "14334",
"translated": "8220",
"approved": "8020",
"words": "155529",
"words_translated": "77160",
"words": "155573",
"words_translated": "77238",
"words_approved": "75468",
"translated_progress": 49,
"approved_progress": 48,
"qa_issues": 61
"qa_issues": 65
},
{
"name": "German",
"code": "de",
"phrases": "14321",
"phrases": "14334",
"translated": "3287",
"approved": "3279",
"words": "155529",
"words": "155573",
"words_translated": "23232",
"words_approved": "23150",
"translated_progress": 14,
Expand All @@ -41,11 +41,11 @@
{
"name": "Japanese",
"code": "ja",
"phrases": "14321",
"translated": "14321",
"phrases": "14334",
"translated": "14334",
"approved": "14182",
"words": "155529",
"words_translated": "155529",
"words": "155573",
"words_translated": "155573",
"words_approved": "154048",
"translated_progress": 100,
"approved_progress": 99,
Expand All @@ -54,10 +54,10 @@
{
"name": "Portuguese, Brazilian",
"code": "pt-BR",
"phrases": "14321",
"phrases": "14334",
"translated": "3537",
"approved": "3530",
"words": "155529",
"words": "155573",
"words_translated": "29763",
"words_approved": "29684",
"translated_progress": 19,
Expand All @@ -67,10 +67,10 @@
{
"name": "Russian",
"code": "ru",
"phrases": "14321",
"phrases": "14334",
"translated": "6309",
"approved": "6197",
"words": "155529",
"words": "155573",
"words_translated": "57453",
"words_approved": "55913",
"translated_progress": 36,
Expand All @@ -80,10 +80,10 @@
{
"name": "Spanish",
"code": "es-ES",
"phrases": "14321",
"phrases": "14334",
"translated": "9575",
"approved": "9514",
"words": "155529",
"words": "155573",
"words_translated": "94815",
"words_approved": "94441",
"translated_progress": 60,
Expand Down
8 changes: 4 additions & 4 deletions wordcount.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
Stat | Value
---- | -----
total files | 290
total words | 307903
unique words | 14160
average words per file | 1061
total words | 308205
unique words | 14158
average words per file | 1062

## Blog English

Expand All @@ -23,6 +23,6 @@ average words per file | 728
Stat | Value
---- | -----
total files | 2306
total words | 1661889
total words | 1662191
unique words | 53720
average words per file | 720

0 comments on commit 3bf63b9

Please sign in to comment.