更新中英文开发者手册
This commit is contained in:
@@ -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
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user