Skip to content

i18n(zh-CN): update modules/astro-assets.mdx - #14459

Open
fyihang wants to merge 1 commit into
withastro:mainfrom
fyihang:i18n-zh-cn/update-astro-assets
Open

i18n(zh-CN): update modules/astro-assets.mdx#14459
fyihang wants to merge 1 commit into
withastro:mainfrom
fyihang:i18n-zh-cn/update-astro-assets

Conversation

@fyihang

@fyihang fyihang commented Aug 23, 2026

Copy link
Copy Markdown

Description (required)

Brings the zh-CN reference/modules/astro-assets.mdx translation up to date with the current English version (syncs 6 upstream commits).

Main changes synced:

  • New font API sections: <Font /> (with cssVariable and preload), fontData, experimental_getFontFileURL(), FontData type, emitClientAsset() — these provide the anchors that the new zh-CN fonts pages link to (i18n(zh-CN): add guides/fonts.mdx #14452, i18n(zh-CN): add reference/font-provider-reference.mdx #14453)
  • Removed the obsolete "responsive image properties" section and emitESMImage() (matching the English version)
  • Updated densities/widths/sizes wording, inferSize behavior note, getImage() caution, and renamed 27 type sub-headings to match the English structure

Note for reviewers: guides/images.mdx (zh-CN) still links to the removed #响应式图片属性 anchor — that page needs its own update (tracked separately), matching the English change to #layout.

Terminology follows the Simplified Chinese translation guide and the new zh-CN fonts translation (#14452).

@github-actions github-actions Bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Aug 23, 2026
@astrobot-houston

Copy link
Copy Markdown
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
zh-cn/reference/modules/astro-assets.mdx Localization changed, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Preview deployment

✅ Deployment complete!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants