Skip to content

i18n(zh-tw): add configuring-astro.mdx#13446

Open
hank00111 wants to merge 1 commit intowithastro:mainfrom
hank00111:i18n/zh-tw-add-configuring-astro
Open

i18n(zh-tw): add configuring-astro.mdx#13446
hank00111 wants to merge 1 commit intowithastro:mainfrom
hank00111:i18n/zh-tw-add-configuring-astro

Conversation

@hank00111
Copy link
Contributor

Description (required)

Add Traditional Chinese translation for configuring-astro.mdx.

Related issues & labels (optional)

  • Suggested label: i18n

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 92f5224
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/69b40ded059b5800084dc3aa
😎 Deploy Preview https://deploy-preview-13446--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 project configuration.

@github-actions github-actions bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Mar 13, 2026
@astrobot-houston
Copy link
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-tw/guides/configuring-astro.mdx Localization added, 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.

Copy link
Contributor

@vrabe vrabe left a comment

Choose a reason for hiding this comment

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

只是建議,你覺得可以的話我就可以


只有在你有東西要設定時才需要它,但大多數專案都會使用。`defineConfig()` 輔助函式在你的 IDE 中提供自動 IntelliSense,也是你加入所有組態選項的地方,用來告訴 Astro 如何建置並將你的專案算繪成 HTML。

我們推薦在大多數情況下使用預設的 `.mjs` 檔案格式,或者如果你想在組態檔中撰寫 TypeScript,則使用 `.ts`。不過也支援 `astro.config.js`。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
我們推薦在大多數情況下使用預設的 `.mjs` 檔案格式,或者如果你想在組態檔中撰寫 TypeScript,則使用 `.ts`不過也支援 `astro.config.js`
我們推薦在大多數情況下使用預設的 `.mjs` 檔案格式,或者如果你想在組態檔中撰寫 TypeScript,則使用 `.ts`不過 `astro.config.js` 也是支援的


### 加入部署網域

為了產生 sitemap 和建立 canonical URL,請在 [`site`](/zh-tw/reference/configuration-reference/#site) 選項中設定你的部署網址。如果你要部署到一個路徑(例如 `www.example.com/docs`),也可以為專案根目錄設定 [`base`](/zh-tw/reference/configuration-reference/#base)。
Copy link
Contributor

Choose a reason for hiding this comment

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

canonical URL 我搜尋的結果好像有一個主要的譯名叫標準網址


### 加入網站中繼資料

Astro 不會用組態檔來處理常見的 SEO 或 meta 資料,只處理建置專案程式碼並將其算繪成 HTML 所需的資訊。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Astro 不會用組態檔來處理常見的 SEO 或 meta 資料,只處理建置專案程式碼並將其算繪成 HTML 所需的資訊。
Astro 不會將組態檔用於常見的 SEO 或 meta 資料,只用於建置專案程式碼並將其算繪成 HTML 所需的資訊。


每個 Astro 起始模板都在你的專案中包含一個 `tsconfig.json` 檔案。Astro 的[元件腳本](/zh-tw/basics/astro-components/#元件腳本)就是 TypeScript,它提供了 Astro 的編輯器工具支援,並讓你可以選擇性地為自己的專案程式碼加入型別檢查語法。

使用 `tsconfig.json` 檔案來設定會在你的程式碼上執行型別檢查的 TypeScript 範本、設定 TypeScript 插件、設定匯入別名等。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
使用 `tsconfig.json` 檔案來設定會在你的程式碼上執行型別檢查的 TypeScript 範本、設定 TypeScript 插件、設定匯入別名等。
使用 `tsconfig.json` 檔案來設定會在你的程式碼上執行型別檢查的 TypeScript 範本、設定 TypeScript 外掛、設定匯入別名等。

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.

3 participants