更新中英文开发者手册

This commit is contained in:
hhhkkk520 2022-05-20 21:02:35 +02:00
parent 5c365f41d1
commit 0372cd39d3
4 changed files with 32 additions and 5 deletions

View File

@ -2,7 +2,7 @@
::: warning
哪吒监控使用 Crowdin 平台翻译文本,请不要直接修改除 `zh-CN.toml` 以外的toml文件
:::
## 使用说明
## 介绍
1. 你可以直接使用 `/resource/l10n/zh-CN.toml` 中的配置来替换新功能中的文本
2. 如果新功能中有新的文本,请将新文本拉取到 `zh-CN.toml`
3. 在Pull Request被合并后你可以前往 [Crowdin 平台](https://crowdin.com/project/nezha)贡献新文本的翻译

View File

@ -8,8 +8,8 @@
## 使用说明
1. 克隆[此仓库](https://github.com/nezhahq/skeleton-custom-theme)到本地
2. 修改 `data/config.yaml` 中的oauth2 配置(回调连接可以填 `http://localhost`
3. `docker-compose up`
2. 修改 `data/config.yaml` 中的 Oauth2 配置(回调连接可以填 `http://localhost`
3. 运行 `docker-compose up`
4. 开始开发
5. 主题制作完成之后可以将 `theme-custom` 放置到服务器上的 `/opt/nezha/dashboard/theme-custom` 位置

View File

@ -1 +1,11 @@
Comming soon
**Nezha Monitoring's Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features**
::: warning
Nezha uses the Crowdin platform to translate text, please do not directly modify the toml files other than `zh-CN.toml`.
:::
## Introduction
1. You can replace the text in the new feature directly using the configuration in `/resource/l10n/zh-CN.toml`
2. If there is new text in the new feature, pull the new text into `zh-CN.toml`
::: tip
If you don't understand Chinese at all, you can translate the text using Google or DeepL Translate, and specify in the Pull Request, we will revise the Chinese translation after you add the English translation
:::
3. After the Pull Request has been merged, you can go to [Crowdin Platform](https://crowdin.com/project/nezha) to contribute translations of the new text

View File

@ -1 +1,18 @@
Comming soon
## Nezha Theme Development Environment
Nezha Monitoring provides a theme development environment that you can use to create new Nezha Monitoring themes
::: warning
Please note: This development environment only supports `dashboard v0.13.16` and newer versions.
:::
## How to use
1. Clone [this repository](https://github.com/nezhahq/skeleton-custom-theme) to local
2. Modify the Oauth2 configuration in `data/config.yaml`The callback connection can be filled with `http://localhost`
3. Run `docker-compose up`
4. Start development
5. Once the theme has been created, you can place `theme-custom` in `/opt/nezha/dashboard/theme-custom` on the server
## FAQ
- If you can't use port `80`, change the configuration in `docker-compose.yaml`.