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: init translation of Svelte stores #17974

Merged
merged 12 commits into from
Jan 24, 2024
Merged

Conversation

hanyujie2002
Copy link
Contributor

Description

Same as title

Motivation

Ditto

Additional details

None

Related issues and pull requests

Relates to #16965

@hanyujie2002 hanyujie2002 requested a review from a team as a code owner January 20, 2024 03:12
@hanyujie2002 hanyujie2002 requested review from irvin and removed request for a team January 20, 2024 03:12
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jan 20, 2024
@hanyujie2002 hanyujie2002 changed the title Svelte store zh-cn: init translation of Svelte stores Jan 20, 2024
Copy link
Contributor

github-actions bot commented Jan 20, 2024

Preview URLs

Flaws (19)

URL: /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Svelte_stores
Title: 使用 Svelte store
Flaw count: 19

  • macros:
    • /zh-CN/docs/Learn/Tools_and_testing/Understanding_client-side_tools/Deployment does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Understanding_client-side_tools/Deployment
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_events_state does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_events_state
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_filtering_conditional_rendering does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_filtering_conditional_rendering
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_resources does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_resources
    • and 14 more flaws omitted
External URLs (18)

URL: /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Svelte_stores
Title: 使用 Svelte store

(comment last updated: 2024-01-24 14:37:10)

hanyujie2002 and others added 2 commits January 20, 2024 11:18
…meworks/svelte_stores/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@yin1999 yin1999 requested review from yin1999 and removed request for irvin January 20, 2024 03:29
Comment on lines 1 to 4
---
title: 使用 Svelte store
slug: Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Svelte_stores
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some suggestions

Co-authored-by: A1lo <yin199909@aliyun.com>
Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>

svelte 在 `svelte/store` 模块中提供了创建[可读](https://svelte.dev/docs/svelte-store#readable)、[可写](https://svelte.dev/docs/svelte-store#writable)和[派生](https://svelte.dev/docs/svelte-store#derived) store 的函数。

svelte 还提供了一种非常直观的将 store 集成到其响应式系统中的方式:[响应式 `$store` 语法](https://svelte.dev/docs/svelte-components#script-4-prefix-stores-with-$-to-access-their-values)。如果你按照 store contract 创建自己的 store,你将获得这种响应式的语法糖而无需多余代码。
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
svelte 还提供了一种非常直观的将 store 集成到其响应式系统中的方式:[响应式 `$store` 语法](https://svelte.dev/docs/svelte-components#script-4-prefix-stores-with-$-to-access-their-values)。如果你按照 store contract 创建自己的 store,你将获得这种响应式的语法糖而无需多余代码。
svelte 还提供了一种非常直观的将 store 集成到其响应式系统中的方式:[响应式 `$store` 语法](https://svelte.dev/docs/svelte-components#script-4-prefix-stores-with-$-to-access-their-values)。如果你按照 store 合约创建自己的 store,你将获得这种响应式的语法糖而无需多余代码。

@hanyujie2002 hanyujie2002 requested a review from yin1999 January 22, 2024 08:08
@hanyujie2002 hanyujie2002 requested a review from yin1999 January 24, 2024 07:39
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @hanyujie2002

@yin1999 yin1999 merged commit 00711c7 into mdn:main Jan 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants