« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1752 ms

Sync with upstream @ 20208769 by javascript-translate-bot · Pull Request #40 · javascript-tutorial/ug.javascript.info

Source: https://github.com/javascript-tutorial/ug.javascript.info/pull/40

Repository navigation

Sync with upstream @ 20208769 - #40


Open
javascript-translate-bot wants to merge 8 commits into master from sync-20208769
Open

Sync with upstream @ 20208769 #40 javascript-translate-bot wants to merge 8 commits into master from sync-20208769

Conversation

javascript-translate-bot commented Nov 30, 2026



Copy link Copy Markdown

This PR was automatically generated to merge changes from en.javascript.info at 2020876

Conflicted files in this PR have labels ">>>..." with both sides of conflict. If you merge this PR, you'll need to examine the listed files and resolve conflicts.

Alternatively, you can close this PR and merge conflicting changes manually.

The following files have conflicts and may need updates of the translations:

To merge changes manually (instead of merging this PR):

  1. Add remote upstream that links to the English version (only needs to be done once)
    • git add remote upstream https://github.com/javascript-tutorial/en.javascript.info
  2. Commit all current work locally and git checkout master
  3. Pull the recent changes from the English version:
    • git pull upstream master
  4. Deal with the conflicts. If a conflict touches a few lines, then just fix it. Otherwise, following commands can help:
    • Checkout your (translated) version of a file/folder at the given path (removes all upstream changes):
      • git checkout --ours <path>
    • See the diff, what changed in the upstream file since branches diverged:
      • git diff --word-diff master...upstream/master <path> (please note: three dots in the command)
    • Then you can examine the changes in upstream and add them manually
  5. When conflicts resolved, commit them and git push origin master

This PR will be closed and replaced with a new one in a few days.

audiodude and others added 8 commits July 22, 2024 18:57 Update article.md c07df98
Remove non-inclusive language.
Merge branch 'master' into patch-1 c6f645c Merge pull request #3724 from audiodude/patch-1 52c1e61
Update article.md
Convert prompt inputs to numbers with unary plus a197375
Added unary plus to prompt inputs for type conversion.
Fix Prism API name: highlightElem -> highlightElement f7922ed
The article's prose and inline examples use Prism.highlightElem, which
does not exist in the Prism.js API, while the demo code later in the same
article correctly uses Prism.highlightElement. Unify on the real API name.

Also pass only the element in forEach callbacks: forEach supplies
(element, index, array), which would collide with the
highlightElement(element, async, callback) signature if the method
reference is passed directly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MizgRqMWEBSTYhJ9YhSd2g
Merge pull request #3980 from Violet-Bora-Lee/fix-prism-highlight-ele... 725653f
...ment

Fix Prism API name: highlightElem -> highlightElement in MutationObserver article
Merge pull request #3977 from Lk-ux/patch-3 2020876
Convert prompt inputs to numbers with unary plus
merging all conflicts 918e6e1 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

6 participants