mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
Update readme
Signed-off-by: Sherlock113 <sherlockxu@yunify.com>
This commit is contained in:
parent
bcfb9a20fd
commit
922332e33e
18
README.md
18
README.md
|
|
@ -75,13 +75,27 @@ Now you can preview the website in your browser using `http://localhost:1313/`.
|
|||
|
||||
### Open a pull request
|
||||
|
||||
Open a [pull request (PR)](https://help.github.com/en/desktop/contributing-to-projects/creating-an-issue-or-pull-request#creating-a-new-pull-request) to add a localization to the repository.
|
||||
Open a [pull request (PR)](https://help.github.com/en/desktop/contributing-to-projects/creating-an-issue-or-pull-request#creating-a-new-pull-request) to add a localization to the repository. Please use DCO sign-off when you submit a pr. Refer to the command below (add `-s`):
|
||||
|
||||
```bash
|
||||
git commit -s -m "xxx"
|
||||
```
|
||||
|
||||
### Preview a pull request
|
||||
|
||||
Click **Details** as shown in the image below, which will direct you to the website homepage. Navigate to the part you want to preview.
|
||||
|
||||

|
||||
|
||||
If the button above does not appear, go to **Files changed** tab. Click the three dots of the md file you want to preview as shown below. Please note that this method can only give you a preview on the GitHub instead of on the website.
|
||||
|
||||

|
||||
|
||||
## Localizing
|
||||
|
||||
### Find your two-letter language code
|
||||
|
||||
First, find your localization’s two-letter country code. For example, the two-letter code for Turkey is tr. then, open `config.toml`, change the menu which language you want to translate。
|
||||
First, find your localization’s two-letter country code. For example, the two-letter code for Turkey is tr. Then, open `config.toml` and change the menu of the language you want to translate.
|
||||
|
||||
```
|
||||
[languages.tr]
|
||||
|
|
|
|||
Loading…
Reference in New Issue