docs icon indicating copy to clipboard operation
docs copied to clipboard

i18n(zh-cn): Translate `Endpoints.md`

Open mogeko opened this issue 3 years ago • 1 comments

What kind of changes does this PR include?

  • New or updated content
  • Translated content
  • Changes to the docs site code

Description

Translated Endpoints document. Its English reference comes from here.

At the same time, we modified a code error for /en/core-concepts/endpoints.md:

https://github.com/withastro/docs/blob/6d387a144de27ee78b75a740623489907f174163/src/pages/en/core-concepts/endpoints.md?plain=1#L32-L38

export async function get({ params, request }) { 
   const response = await fetch("https://astro.build/assets/press/full-logo-light.png"); 
   const buffer = Buffer.from(await response.arrayBuffer()); 
   return { 
     body: buffer, 
     encoding: 'binary', 
   };
}

He was marked as missing in #438.

Please labeled this PR with hacktoberfest-accepted. :kissing_heart:

mogeko avatar Oct 02 '22 22:10 mogeko

Deploy Preview for astro-docs-2 ready!

Name Link
Latest commit cb7717f2a1ccb41cdb23aa9ad354f2924dde95bd
Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/63526415f5aafd000744b32c
Deploy Preview https://deploy-preview-1685--astro-docs-2.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Oct 02 '22 22:10 netlify[bot]