Skip to content

Commit

Permalink
remove 'notranslate' 6 (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Feb 19, 2021
1 parent 63c69f3 commit 3b80812
Show file tree
Hide file tree
Showing 1,000 changed files with 3,288 additions and 3,288 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/abstractrange/collapsed/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">var <em>isCollapsed</em> = <em>range</em>.collapsed</pre>
<pre class="brush: js">var <em>isCollapsed</em> = <em>range</em>.collapsed</pre>

<h3 id="Value">Value</h3>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/abstractrange/endcontainer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">var <em>endNode</em> = <em>range</em>.endContainer
<pre class="brush: js">var <em>endNode</em> = <em>range</em>.endContainer
</pre>

<h3 id="Value">Value</h3>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/abstractrange/endoffset/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate"><em>var endOffset = range</em>.endOffset;</pre>
<pre class="brush: js"><em>var endOffset = range</em>.endOffset;</pre>

<h3 id="Value">Value</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">var <em>startNode</em> = <em>range</em>.startContainer
<pre class="brush: js">var <em>startNode</em> = <em>range</em>.startContainer
</pre>

<h3 id="Value">Value</h3>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/abstractrange/startoffset/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate"><em>var startOffset = range</em>.startOffset
<pre class="brush: js"><em>var startOffset = range</em>.startOffset
</pre>

<h3 id="Value">Value</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">BeforeInstallPromptEvent.prompt()</pre>
<pre class="brush: js">BeforeInstallPromptEvent.prompt()</pre>

<h3 id="Parameters">Parameters</h3>

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/clipboard/read/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<h2 id="Syntax">Syntax</h2>

<pre
class="brush: js notranslate">var <em>promise</em> = navigator.clipboard.read();</pre>
class="brush: js">var <em>promise</em> = navigator.clipboard.read();</pre>

<h3 id="Parameters">Parameters</h3>

Expand All @@ -59,7 +59,7 @@ <h2 id="Example">Example</h2>
image, an error message is presented. Otherwise, an image element referred to using the
variable <code>imgElem</code> has its source replaced with the clipboard's contents.</p>

<pre class="brush: js notranslate">// First, ask the Permissions API if we have some kind of access to
<pre class="brush: js">// First, ask the Permissions API if we have some kind of access to
// the "clipboard-read" feature.

navigator.permissions.query({name: "clipboard-read"}).then(result =&gt; {
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/clipboard/readtext/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<h2 id="Syntax">Syntax</h2>

<pre
class="brush: js notranslate">var <em>promise</em> = navigator.clipboard.readText()</pre>
class="brush: js">var <em>promise</em> = navigator.clipboard.readText()</pre>

<h3 id="Parameters">Parameters</h3>

Expand All @@ -51,7 +51,7 @@ <h2 id="Example">Example</h2>
<p>This example retrieves the textual contents of the clipboard and inserts the returned
text into an element's contents.</p>

<pre class="brush: js notranslate">navigator.clipboard.readText().then(
<pre class="brush: js">navigator.clipboard.readText().then(
clipText =&gt; document.getElementById("outbox").innerText = clipText);</pre>

<h2 id="Specifications">Specifications</h2>
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/clipboard/write/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<h2 id="Syntax">Syntax</h2>

<pre
class="brush: js notranslate">var <em>promise</em> = navigator.clipboard.write(<em>data</em>)</pre>
class="brush: js">var <em>promise</em> = navigator.clipboard.write(<em>data</em>)</pre>

<h3 id="Parameters">Parameters</h3>

Expand All @@ -57,7 +57,7 @@ <h2 id="Example">Example</h2>
<p>This example function replaces the current contents of the clipboard with a specified
string.</p>

<pre class="brush: js notranslate">function setClipboard(text) {
<pre class="brush: js">function setClipboard(text) {
let data = [new ClipboardItem({ "text/plain": text })];

navigator.clipboard.write(data).then(function() {
Expand All @@ -78,7 +78,7 @@ <h2 id="Example">Example</h2>
<h3 id="Example_of_copying_canvas_contents_to_the_clipboard">Example of copying canvas
contents to the clipboard</h3>

<pre class="brush: js notranslate">function copyCanvasContentsToClipboard(canvas, onDone, onError) {
<pre class="brush: js">function copyCanvasContentsToClipboard(canvas, onDone, onError) {
canvas.toBlob(function (blob) {
let data = [new ClipboardItem({ [blob.type]: blob })];

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/clipboard/writetext/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<h2 id="Syntax">Syntax</h2>

<pre
class="brush: js notranslate">var <em>promise</em> = navigator.clipboard.writeText(<em>newClipText</em>)</pre>
class="brush: js">var <em>promise</em> = navigator.clipboard.writeText(<em>newClipText</em>)</pre>

<h3 id="Parameters">Parameters</h3>

Expand All @@ -56,7 +56,7 @@ <h2 id="Example">Example</h2>

<p>This example sets the clipboard's contents to the string "&lt;empty clipboard&gt;".</p>

<pre class="brush: js notranslate">navigator.clipboard.writeText("&lt;empty clipboard&gt;").then(function() {
<pre class="brush: js">navigator.clipboard.writeText("&lt;empty clipboard&gt;").then(function() {
/* clipboard successfully set */
}, function() {
/* clipboard write failed */
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/assert/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.assert(<em>assertion</em>, <em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
<pre class="brush: js">console.assert(<em>assertion</em>, <em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
console.assert(<em>assertion</em>, <em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]); // C-like message formatting
</pre>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/clear/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.clear();
<pre class="brush: js">console.clear();
</pre>

<h2 id="Specifications">Specifications</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/count/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.count(<var>[label]</var>);</pre>
<pre class="brush: js">console.count(<var>[label]</var>);</pre>

<h3 id="Parameters">Parameters</h3>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/countreset/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.countReset(<var>[label]</var>);
<pre class="brush: js">console.countReset(<var>[label]</var>);
</pre>

<h3 id="Parameters">Parameters</h3>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/debug/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.debug(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
<pre class="brush: js">console.debug(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
console.debug(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]);
</pre>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/dir/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.dir(<var>object</var>);
<pre class="brush: js">console.dir(<var>object</var>);
</pre>

<h3 id="Parameters">Parameters</h3>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/dirxml/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.dirxml(<em>object</em>);
<pre class="brush: js">console.dirxml(<em>object</em>);
</pre>

<h2 id="Parameters">Parameters</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/error/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.error(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
<pre class="brush: js">console.error(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
console.error(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]);
</pre>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/group/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.group([label]);
<pre class="brush: js">console.group([label]);
</pre>

<h2 id="Parameters">Parameters</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/groupcollapsed/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.groupCollapsed([label]);
<pre class="brush: js">console.groupCollapsed([label]);
</pre>

<h2 id="Parameters">Parameters</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/groupend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.groupEnd();
<pre class="brush: js">console.groupEnd();
</pre>

<h2 id="Parameters">Parameters</h2>
Expand Down
22 changes: 11 additions & 11 deletions files/en-us/web/api/console/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<p>The <code>console</code> object can be accessed from any global object. {{domxref("Window")}} on browsing scopes and {{domxref("WorkerGlobalScope")}} as specific variants in workers via the property console. It's exposed as {{domxref("Window.console")}}, and can be referenced as <code>console</code>. For example:</p>

<pre class="brush: js notranslate">console.log("Failed to open the specified link")</pre>
<pre class="brush: js">console.log("Failed to open the specified link")</pre>

<p>This page documents the {{anch("Methods")}} available on the <code>console</code> object and gives a few {{anch("Usage")}} examples.</p>

Expand Down Expand Up @@ -88,25 +88,25 @@ <h4 id="Outputting_a_single_object">Outputting a single object</h4>

<p>The simplest way to use the logging methods is to output a single object:</p>

<pre class="brush: js notranslate">var someObject = { str: "Some text", id: 5 };
<pre class="brush: js">var someObject = { str: "Some text", id: 5 };
console.log(someObject);
</pre>

<p>The output looks something like this:</p>

<pre class="brush: bash notranslate">[09:27:13.475] ({str:"Some text", id:5})</pre>
<pre class="brush: bash">[09:27:13.475] ({str:"Some text", id:5})</pre>

<h4 id="Outputting_multiple_objects">Outputting multiple objects</h4>

<p>You can also output multiple objects by listing them when calling the logging method, like this:</p>

<pre class="brush: js notranslate">var car = "Dodge Charger";
<pre class="brush: js">var car = "Dodge Charger";
var someObject = { str: "Some text", id: 5 };
console.info("My first car was a", car, ". The object is:", someObject);</pre>

<p>This output will look like this:</p>

<pre class="brush: bash notranslate">[09:28:22.711] My first car was a Dodge Charger . The object is: ({str:"Some text", id:5})
<pre class="brush: bash">[09:28:22.711] My first car was a Dodge Charger . The object is: ({str:"Some text", id:5})
</pre>

<h4 id="Using_string_substitutions">Using string substitutions</h4>
Expand All @@ -130,14 +130,14 @@ <h4 id="Using_string_substitutions">Using string substitutions</h4>

<p>Each of these pulls the next argument after the format string off the parameter list. For example:</p>

<pre class="brush: js notranslate">for (var i=0; i&lt;5; i++) {
<pre class="brush: js">for (var i=0; i&lt;5; i++) {
  console.log("Hello, %s. You've called me %d times.", "Bob", i+1);
}
</pre>

<p>The output looks like this:</p>

<pre class="brush: bash notranslate">[13:14:13.481] Hello, Bob. You've called me 1 times.
<pre class="brush: bash">[13:14:13.481] Hello, Bob. You've called me 1 times.
[13:14:13.483] Hello, Bob. You've called me 2 times.
[13:14:13.485] Hello, Bob. You've called me 3 times.
[13:14:13.487] Hello, Bob. You've called me 4 times.
Expand All @@ -148,7 +148,7 @@ <h4 id="Styling_console_output">Styling console output</h4>

<p>You can use the <code>%c</code> directive to apply a CSS style to console output:</p>

<pre class="brush: js notranslate">console.log("This is %cMy stylish message", "color: yellow; font-style: italic; background-color: blue;padding: 2px");</pre>
<pre class="brush: js">console.log("This is %cMy stylish message", "color: yellow; font-style: italic; background-color: blue;padding: 2px");</pre>

<p>The text before the directive will not be affected, but the text after the directive will be styled using the CSS declarations in the parameter.</p>

Expand Down Expand Up @@ -187,7 +187,7 @@ <h3 id="Using_groups_in_the_console">Using groups in the console</h3>

<p>To exit the current group, call <code>console.groupEnd()</code>. For example, given this code:</p>

<pre class="brush: js notranslate">console.log("This is the outer level");
<pre class="brush: js">console.log("This is the outer level");
console.group("First group");
console.log("In the first group");
console.group("Second group");
Expand All @@ -209,7 +209,7 @@ <h3 id="Timers">Timers</h3>

<p>For example, given this code:</p>

<pre class="brush: js notranslate">console.time("answer time");
<pre class="brush: js">console.time("answer time");
alert("Click to continue");
console.timeLog("answer time");
alert("Do a bunch of other stuff...");
Expand All @@ -228,7 +228,7 @@ <h3 id="Stack_traces">Stack traces</h3>

<p>The console object also supports outputting a stack trace; this will show you the call path taken to reach the point at which you call {{domxref("console.trace()")}}. Given code like this:</p>

<pre class="brush: js notranslate">function foo() {
<pre class="brush: js">function foo() {
  function bar() {
    console.trace();
  }
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/info/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.info(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
<pre class="brush: js">console.info(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
console.info(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]);
</pre>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/log/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.log(<var>obj1</var> [, <var>obj2</var>, ..., <var>objN</var>]);
<pre class="brush: js">console.log(<var>obj1</var> [, <var>obj2</var>, ..., <var>objN</var>]);
console.log(<var>msg</var> [, <var>subst1</var>, ..., <var>substN</var>]);
</pre>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.profile(<em>profileName</em>);
<pre class="brush: js">console.profile(<em>profileName</em>);
</pre>

<h2 id="Parameters">Parameters</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/profileend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.profileEnd(<em>profileName</em>);
<pre class="brush: js">console.profileEnd(<em>profileName</em>);
</pre>

<h2 id="Parameters">Parameters</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/table/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h3 id="Sorting_columns">Sorting columns</h3>

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.table(data [, <em>columns</em>]);
<pre class="brush: js">console.table(data [, <em>columns</em>]);
</pre>

<h3 id="Parameters">Parameters</h3>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/time/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.time(<var>label</var>);
<pre class="brush: js">console.time(<var>label</var>);
</pre>

<h2 id="Parameters">Parameters</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/timeend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.timeEnd(<em>label</em>);
<pre class="brush: js">console.timeEnd(<em>label</em>);
</pre>

<h3 id="Parameters">Parameters</h3>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/timelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js notranslate">console.timeLog(<em>label</em>);</pre>
<pre class="brush: js">console.timeLog(<em>label</em>);</pre>

<h3 id="Parameters">Parameters</h3>

Expand Down
Loading

0 comments on commit 3b80812

Please sign in to comment.