-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(de): translate diff [55a2df9a36]
Machine translation from English using gpt-4o-2024-08-06. Source: mdn/content@55a2df9 System prompt: ```md You are tasked with translating MDN Web Docs content from English to German. Ensure that the translation is accurate, preserves technical terminology, and follows the rules provided below. # Rules for Translation 1. Format: - The input is a Markdown file. - The output should be a Markdown file. - Return the raw output, without wrapping it in a Markdown code block. - Keep GFM alert syntax untranslated, such as `> [!NOTE]`, `> [!WARNING]`, and `> [!CALLOUT]`. - If the input contains HTML tags wrapped in backticks (e.g. `<video>`), make sure they are wrapped in the output. 2. Language: - Prefer formal language ("Sie") over informal language ("du"). 3. Code blocks: - Do not translate code blocks. - Do not translate terms wrapped in backticks. 4. Macro calls: - MDN uses macros for dynamic content insertion. These macros must remain **unchanged** and not translated. - Macro calls start with `{{`, followed by the macro name, optional parameters, and end with `}}`. - Avoid invalid macro calls by ensuring curly braces, parentheses, and quotes are closed properly. 5. Technical terms and code snippets in text: - Keep technical terms like element names, attributes, and method names in **English**. Only translate the surrounding descriptive text. 6. Links and References: - Translate link descriptions, but keep the URLs and their structure intact. - Do not change the locale in URLs. 7. Glossary: - "Browser compatibility" => "Browser-Kompatibilität" - "Guide" => "Leitfaden" - "How to" => "Anleitung" # Translation Scope Translate the following Markdown content from **English** to **German** while adhering to the rules above. ```
- Loading branch information
Showing
22 changed files
with
1,155 additions
and
30 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
files/de/web/api/navigateevent/hasuavisualtransition/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: "NavigateEvent: hasUAVisualTransition-Eigenschaft" | ||
short-title: hasUAVisualTransition | ||
slug: Web/API/NavigateEvent/hasUAVisualTransition | ||
l10n: | ||
sourceCommit: 875b84034211b6e83150ba33efac9b0665074f17 | ||
--- | ||
|
||
{{APIRef("Navigation API")}}{{SeeCompatTable}} | ||
|
||
Die schreibgeschützte Eigenschaft **`hasUAVisualTransition`** des [`NavigateEvent`](/de/docs/Web/API/NavigateEvent)-Interfaces gibt `true` zurück, wenn der User-Agent eine visuelle Übergangsanimation für diese Navigation durchgeführt hat, bevor dieses Ereignis ausgelöst wurde, oder `false` andernfalls. | ||
|
||
User-Agents können bei der Ausführung von Webseiten-Navigationen eine integrierte visuelle Übergangsanimation bereitstellen. Wenn der Webseitenautor ebenfalls eine visuelle Übergangsanimation hinzufügt, können User-Agent- und Autoren-Übergänge in Konflikt geraten und einen Besucher verwirren. Die Eigenschaft ermöglicht es, zu erkennen, ob ein UA-Übergang bereitgestellt wurde, sodass Sie Autoren-Übergänge überspringen können, um ein besseres Benutzererlebnis zu gewährleisten. | ||
|
||
## Wert | ||
|
||
Ein boolescher Wert. | ||
|
||
## Beispiele | ||
|
||
```js | ||
navigation.addEventListener("navigate", (event) => { | ||
// Some navigations, e.g. cross-origin navigations, we | ||
// cannot intercept. Let the browser handle those normally. | ||
if (!event.canIntercept) { | ||
return; | ||
} | ||
|
||
// Don't intercept fragment navigations or downloads. | ||
if (event.hashChange || event.downloadRequest !== null) { | ||
return; | ||
} | ||
|
||
event.intercept({ | ||
handler() { | ||
// Fetch the new content | ||
const newContent = await fetchNewContent(event.destination.url, { | ||
signal: event.signal, | ||
}); | ||
|
||
// The UA does not support View Transitions, or the UA | ||
// already provided a Visual Transition by itself (e.g. swipe back). | ||
// In either case, update the DOM directly | ||
if (!document.startViewTransition || event.hasUAVisualTransition) { | ||
doSinglePageAppNav(newContent); | ||
return; | ||
} | ||
|
||
// Update the content using a View Transition | ||
document.startViewTransition(() => { | ||
doSinglePageAppNav(newContent); | ||
}); | ||
}, | ||
}); | ||
}); | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} | ||
|
||
## Siehe auch | ||
|
||
- [Modernes clientseitiges Routing: die Navigation API](https://developer.chrome.com/docs/web-platform/navigation-api/) | ||
- [Navigation API Erklärer](https://github.com/WICG/navigation-api/blob/main/README.md) | ||
- Domenic Denicolas [Navigation API Live-Demo](https://gigantic-honored-octagon.glitch.me/) | ||
- [Same-document-Übergänge für Single-Page-Anwendungen](https://developer.chrome.com/docs/web-platform/view-transitions/same-document) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
files/de/web/api/popstateevent/hasuavisualtransition/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: "PopStateEvent: hasUAVisualTransition-Eigenschaft" | ||
short-title: hasUAVisualTransition | ||
slug: Web/API/PopStateEvent/hasUAVisualTransition | ||
l10n: | ||
sourceCommit: 875b84034211b6e83150ba33efac9b0665074f17 | ||
--- | ||
|
||
{{APIRef("History API")}}{{SeeCompatTable}} | ||
|
||
Die schreibgeschützte Eigenschaft **`hasUAVisualTransition`** des [`PopStateEvent`](/de/docs/Web/API/PopStateEvent)-Interfaces gibt `true` zurück, wenn der User-Agent für diese Navigation eine visuelle Übergangsanimation vor der Auslösung dieses Ereignisses durchgeführt hat, andernfalls `false`. | ||
|
||
User-Agents können bei der Durchführung von Seiten-Navigationen eine integrierte visuelle Übergangsanimation bereitstellen. Wenn der Seitenautor ebenfalls eine visuelle Übergangsanimation hinzufügt, könnten sich die Übergangsanimationen des User-Agents und des Autors überschneiden und einen Besucher verwirren. Die Eigenschaft ermöglicht es Ihnen zu erkennen, ob eine Übergangsanimation des User-Agents bereitgestellt wurde, sodass Sie Übergangsanimationen des Autors überspringen können, um ein besseres Benutzererlebnis zu erzielen. | ||
|
||
## Wert | ||
|
||
Ein boolescher Wert. | ||
|
||
## Beispiele | ||
|
||
```js | ||
window.addEventListener("popstate", (event) => { | ||
// Fetch the new content | ||
const newContent = await fetchNewContent(location.href); | ||
|
||
// The UA does not support View Transitions, or the UA | ||
// already provided a Visual Transition by itself (e.g. swipe back). | ||
// In either case, update the DOM directly | ||
if (!document.startViewTransition || event.hasUAVisualTransition) { | ||
doSinglePageAppNav(newContent); | ||
return; | ||
} | ||
|
||
// Update the content using a View Transition | ||
document.startViewTransition(() => { | ||
doSinglePageAppNav(newContent); | ||
}); | ||
}); | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} | ||
|
||
## Siehe auch | ||
|
||
- [Moderne client-seitige Navigation: die Navigation API](https://developer.chrome.com/docs/web-platform/navigation-api/) | ||
- [Navigation API Explainer](https://github.com/WICG/navigation-api/blob/main/README.md) | ||
- Domenic Denicolas [Live-Demo zur Navigation API](https://gigantic-honored-octagon.glitch.me/) | ||
- [Übergangseffekte für selbe-Dokument-Ansichten in Single-Page-Anwendungen](https://developer.chrome.com/docs/web-platform/view-transitions/same-document) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
files/de/web/api/svgfediffuselightingelement/diffuseconstant/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: "SVGFEDiffuseLightingElement: diffuseConstant-Eigenschaft" | ||
short-title: diffuseConstant | ||
slug: Web/API/SVGFEDiffuseLightingElement/diffuseConstant | ||
l10n: | ||
sourceCommit: e9ef767e76e5e04884293f12e393deb9455c87af | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
Die **`diffuseConstant`**-Eigenschaft, die nur gelesen werden kann, des [`SVGFEDiffuseLightingElement`](/de/docs/Web/API/SVGFEDiffuseLightingElement)-Interfaces spiegelt das {{SVGAttr("diffuseConstant")}}-Attribut des angegebenen {{SVGElement("feDiffuseLighting")}}-Elements wider. | ||
|
||
## Wert | ||
|
||
Ein [`SVGAnimatedNumber`](/de/docs/Web/API/SVGAnimatedNumber)-Objekt. | ||
|
||
## Beispiele | ||
|
||
### Zugriff auf die `diffuseConstant`-Eigenschaft | ||
|
||
```html | ||
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> | ||
<defs> | ||
<filter id="diffuseLightingFilter"> | ||
<feDiffuseLighting | ||
in="SourceGraphic" | ||
diffuseConstant="1.5" | ||
lighting-color="white"> | ||
<feDistantLight azimuth="45" elevation="55" /> | ||
</feDiffuseLighting> | ||
</filter> | ||
</defs> | ||
<rect | ||
x="20" | ||
y="20" | ||
width="100" | ||
height="100" | ||
style="fill:lightblue;" | ||
filter="url(#diffuseLightingFilter)" /> | ||
</svg> | ||
``` | ||
|
||
```js | ||
const diffuseLighting = document.querySelector("feDiffuseLighting"); | ||
|
||
console.log(diffuseLighting.diffuseConstant.baseVal); // Output: 1.5 | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} | ||
|
||
## Siehe auch | ||
|
||
- [`SVGAnimatedNumber`](/de/docs/Web/API/SVGAnimatedNumber) |
Oops, something went wrong.