Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-CN]: add translation for Navigation.transition #24505

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/navigation/activation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ if (navigation.activation) {

## 参见

- [现代客户端路由:Navigation API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [Navigation API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [Navigation API 在线示例](https://gigantic-honored-octagon.glitch.me/)
- [现代客户端路由:导航 API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [导航 API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/navigation/currententry/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ navigation.addEventListener("navigate", (event) => {

## 参见

- [现代客户端路由:Navigation API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [Navigation API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [Navigation API 在线示例](https://gigantic-honored-octagon.glitch.me/)
- [现代客户端路由:导航 API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [导航 API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)
skyclouds2001 marked this conversation as resolved.
Show resolved Hide resolved
40 changes: 40 additions & 0 deletions files/zh-cn/web/api/navigation/transition/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: Navigation:transition 属性
slug: Web/API/Navigation/transition
l10n:
sourceCommit: ef75c1741b450c2331204be5563ee964ad5f4c48
---

{{APIRef("Navigation API")}}{{SeeCompatTable}}

{{domxref("Navigation")}} 接口的 **`transition`** 只读属性返回一个 {{domxref("NavigationTransition")}} 对象,该对象表示正在进行的导航的状态,可用于跟踪正在进行的导航。

## 值

{{domxref("NavigationTransition")}} 对象,如果当前没有正在进行的导航,则为 `null`。

## 示例

```js
async function handleTransition() {
if (navigation.transition) {
showLoadingSpinner();
await navigation.transition.finished;
hideLoadingSpinner();
}
}
```

## 规范

{{Specifications}}

## 浏览器兼容性

{{Compat}}

## 参见

- [现代客户端路由:导航 API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [导航 API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)
skyclouds2001 marked this conversation as resolved.
Show resolved Hide resolved