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

Add i18n/zh_tw translation #763

Merged
merged 8 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SwitchHosts

- [简体中文](README_cn.md)
- [简体中文](README.zh_hans.md)
- [繁體中文](README.zh_hant.md)

Homepage: [https://swh.app](https://swh.app)

Expand Down
1 change: 1 addition & 0 deletions README_cn.md → README.zh_hans.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SwitchHosts

- [English](README.md)
- [繁體中文](README.zh_hant.md)

项目主页:[https://swh.app](https://swh.app)

Expand Down
68 changes: 68 additions & 0 deletions README.zh_hant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# SwitchHosts

- [English](README.md)
- [简体中文](README.zh_hans.md)

項目主頁:[https://swh.app](https://swh.app)

SwitchHosts 是一個管理 hosts 檔案的應用程式,基於 [Electron](http://electron.atom.io/)
、[React](https://facebook.github.io/react/)、[UmiJS](https://umijs.org/)
、[Chakra UI](https://chakra-ui.com/)、[CodeMirror](http://codemirror.net/) 等技術開發。

## 螢幕截圖

<img src="https://raw.githubusercontent.com/oldj/SwitchHosts/master/screenshots/sh_light.png" alt="Capture" width="960">

## 功能特性

- 快速切換 hosts 方案
- hosts 語法高亮顯示
- 支援從網路載入遠程 hosts 設定
- 可從系統菜單欄圖是快速切換 hosts

## 安裝

### 下載

你可以下載原始碼並自行建置,也可以從以下網址下載已經建置好的版本:

- [SwitchHosts Download Page (GitHub release)](https://github.com/oldj/SwitchHosts/releases)

你也可以通過 [Chocolatey 包管理器](https://community.chocolatey.org/packages/switchhosts)安裝已經建置好的版本:
```powershell
choco install switchhosts
```

## 數據備份

SwitchHosts 的數據文件儲存於 `~/.SwitchHosts` (Windows 下儲存使用者個人文件裡的 `.SwitchHosts` 資料夾),
其中 `~/.SwitchHosts/data` 資料夾包含數據,`~/.SwitchHosts/config` 資料夾包含各種設定。

## 開發及建置

### 開發

- 安裝 [Node.js](https://nodejs.org/)
- 在項目根目錄 `./` 下,執行 `npm install` 指令安裝前置
- 執行 `npm run dev` 指令啟動開發服務
- 執行 `npm run start` 啟動應用程式,即可開始開發及測試

### 打包

- 推薦使用 [electron-builder](https://github.com/electron-userland/electron-builder) 進行打包
- 轉到項目根目錄 './'
- 執行 `npm run build`
- 執行 `npm run make`,如果一切順利,可在 `./dist` 目錄下找到打包後的檔案
- 首次執行可能需要花費一點時間,因為需要下載相關的前置檔案。你也可以從 [這裡](https://github.com/electron/electron/releases)
手動下載,並儲存到 `~/.electron`目錄下。更多資訊可以參考 [Electron 文檔](http://electron.atom.io/docs/)。

```bash
# build
npm run build
# make
npm run make # the packed files will be in ./dist
```

## 版權聲明

SwitchHosts 是一個免費開源軟體,基於 Apache-2.0 開源協議發佈。