Skip to content

Conversation

yorukot
Copy link

@yorukot yorukot commented Sep 19, 2025

Description (required)

Update zh-tw translation for install-and-setup.mdx

Discord username: yoru.kot

@github-actions github-actions bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Sep 19, 2025
Copy link

netlify bot commented Sep 19, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7385d3d
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/68d5578aa0532c0008060b49
😎 Deploy Preview https://deploy-preview-12354--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.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Sep 19, 2025

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/basics/project-structure.mdx Localization changed, will be marked as complete.
zh-tw/install-and-setup.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.

@astrobot-houston
Copy link
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🥳.

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

@vrabe
Copy link
Contributor

vrabe commented Sep 22, 2025

首先謝謝你的翻譯

我還沒有仔細看,不過有些是可以先改的:

連結要是中文版的,就算還沒有翻譯。也就是說以 /en/ 開頭的站內連結都要改成 /zh-tw/ 開頭。

anchor 也要是中文版的。它是由標題轉換成的,把標題的空格換成 - 就能得到指向那個標題的連結。這個有點難判斷,所以我會在下面指出來:

@yorukot yorukot requested a review from vrabe September 23, 2025 09:07
@yorukot
Copy link
Author

yorukot commented Sep 23, 2025

好的,謝謝你的 review 我已經針對上面的要求進行更改了!
如果還需要更改什麼再跟我說一下,感謝

@yorukot
Copy link
Author

yorukot commented Sep 24, 2025

這個 Error 要改嗎?
看起來是因為:

若需要為你專案建立一個新的 `package.json` 檔案,可以看看[手動安裝](/zh-tw/install-and-setup/#manual-setup)教學來取得協助。

目前 install-and-setup 已經翻譯了,所以出現這個錯誤。

@vrabe
Copy link
Contributor

vrabe commented Sep 24, 2025

@yorukot 要的,也請把它改一下。

@yorukot
Copy link
Author

yorukot commented Sep 26, 2025

@vrabe 已更改

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.

大概是這樣,你再看看。

i18nReady: true
banner:
content: |
Astro v5 已經到來! <a href="/zh-tw/guides/upgrade-to/v5/">了解如何升級您的網站</a>
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 v5 已經到來! <a href="/zh-tw/guides/upgrade-to/v5/">了解如何升級您的網站</a>
Astro v5 已經到來<a href="/zh-tw/guides/upgrade-to/v5/">了解如何升級你的網站</a>

用你不用您


[`create astro` CLI 指令](#從-cli-精靈安裝)是從零開始一個新 Astro 專案最快的方法。它會引導你完成設定新 Astro 專案的每個步驟,並讓你從幾個不同的官方起始模板中選擇。

你也可以使用 `template` 選項來執行 CLI 指令,以達到使用任何現有的主題或起始模板來開始你的專案。探索我們的[主題和起始模板展示](https://astro.build/themes/),你可以在那裡瀏覽部落格、作品集、文件網站、登陸頁面等主題!
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
你也可以使用 `template` 選項來執行 CLI 指令,以達到使用任何現有的主題或起始模板來開始你的專案。探索我們的[主題和起始模板展示](https://astro.build/themes/),你可以在那裡瀏覽部落格、作品集、文件網站、登陸頁面等主題!
你也可以加上 `template` 選項來執行 CLI 指令,以使用任何現有的主題或起始模板來開始你的專案。探索我們的[主題和起始模板展示](https://astro.build/themes/),你可以在那裡瀏覽部落格、作品集、文件網站、登陸頁面等主題!

之類的。


2. 現在你的專案已經建立,你可以 `cd` 進入新的專案目錄來開始使用 Astro。

3. 如果你在 CLI 精靈過程中跳過了 「Install dependencies?」 的步驟,請務必在繼續之前安裝相依套件。
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
3. 如果你在 CLI 精靈過程中跳過了 「Install dependencies?」 的步驟,請務必在繼續之前安裝相依套件。
3. 如果你在 CLI 精靈過程中跳過了「Install dependencies?」的步驟,請務必在繼續之前安裝相依套件。


## CLI 安裝選項

你可以使用透過額外選項執行 `create astro` 指令,自訂設定過程(例如對所有問題回答「是」、跳過 Houston 動畫)或你的新專案(例如是否安裝 git、新增整合)。
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
你可以使用透過額外選項執行 `create astro` 指令,自訂設定過程(例如對所有問題回答「是」、跳過 Houston 動畫)或你的新專案(例如是否安裝 git、新增整合)。
你可以在執行 `create astro` 指令時加上額外選項以自訂設定過程(例如對所有問題回答「是」、跳過 Houston 動畫)或你的新專案(例如是否安裝 git、新增整合)。


### 新增整合

你可以在啟動新 Astro 專案的同時,透過在 `create astro` 指令中傳遞 `--add` 參數來安裝任何[官方整合](/zh-tw/guides/integrations-guide/)或支援 `astro add` 指令的社群整合。
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 專案的同時,透過在 `create astro` 指令中傳遞 `--add` 參數來安裝任何[官方整合](/zh-tw/guides/integrations-guide/)或支援 `astro add` 指令的社群整合。
你可以在啟動新 Astro 專案的同時, `create astro` 指令中傳遞 `--add` 參數來安裝任何[官方整合](/zh-tw/guides/integrations-guide/)或支援 `astro add` 指令的社群整合。

或許不需要透過。


你也會想要建立 `public/` 目錄來存放靜態資源。Astro 總是會在最終建構中包含這些資源,所以你可以安全地從元件模板內部參照它們。

在文字編輯器中,於目錄的 `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。
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
在文字編輯器中,於目錄的 `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。
在文字編輯器中, `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。

刪掉也不會改變意思。


- **Node.js** - `v18.20.8` 或 `v20.3.0`、`v22.0.0` 或更高版本。(不支援 `v19` 和 `v21`。)
- **文字編輯器** - 我們推薦使用 [VS Code](https://code.visualstudio.com/) 搭配我們的[官方 Astro 擴充功能](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode)。
- **終端機** - Astro 是透過命令列介面 (CLI) 來使用的。
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 是透過命令列介面 (CLI) 來使用的。
- **終端機** - Astro 是透過命令列介面CLI來使用的。

你可以在電腦的任何地方執行 `create astro`,所以在開始之前不需要為你的專案建立新的空目錄。如果你還沒有為新專案準備空目錄,CLI 精靈會自動幫你建立一個。

<Steps>
1. 在你的終端機中執行以下指令來啟動安裝精靈:
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
1. 在你的終端機中執行以下指令來啟動安裝精靈
1. 在終端機中執行以下指令來啟動安裝精靈

這個你的可以去掉。


在文字編輯器中,於目錄的 `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。

在本指南中,複製並貼上以下程式碼片段到新檔案中:
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
在本指南中,複製並貼上以下程式碼片段到新檔案中:
在本指南,複製並貼上以下程式碼片段到新檔案中:

這樣感覺比較好。


如果你確實打算撰寫 TypeScript 程式碼,建議使用 Astro 的 `strict` 或 `strictest` 模板。你可以在 [astro/tsconfigs/](https://github.com/withastro/astro/blob/main/packages/astro/tsconfigs/) 查看和比較三種模板配置。

在專案根目錄建立 `tsconfig.json`,並將下面的程式碼複製到其中。(你可以為 TypeScript 模板使用 `base`、`strict` 或 `strictest`):
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 模板使用 `base``strict``strictest`):
在專案根目錄建立 `tsconfig.json`,並將下面的程式碼複製到其中。(你可以使用 `base``strict``strictest` 做為 TypeScript 模板):

@vrabe
Copy link
Contributor

vrabe commented Sep 28, 2025

還有你把標題的手動設定手動安裝後,連結也要跟著改,所以等到大概 OK 的時候記得要把連結的錯誤修正。

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.

4 participants