Skip to content

Commit 26276ef

Browse files
committed
Doc: Add support for German translation
1 parent 4226044 commit 26276ef

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

crowdin.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ files:
66
- source: /readme/**/*
77
translation: /readme/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%
88
ignore:
9+
- /**/*.jpg
10+
- /**/*.json
11+
- /**/*.png
12+
- /**/*.yml
913
- /readme/_i18n
10-
- /readme/i18n
1114
- /readme/about/changelog
1215
- /readme/about/stats.md
1316
- /readme/api
14-
- /readme/dev
15-
- /readme/news
1617
- /readme/cla.md
1718
- /readme/connection_check.md
19+
- /readme/dev
20+
- /readme/i18n
21+
- /readme/licenses.md
22+
- /readme/news
1823
- /readme/privacy.md
19-
- /**/*.yml
20-
- /**/*.json
21-
- /**/*.png
22-
- /**/*.jpg
2324

packages/doc-builder/README.md

+17-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern sta
88

99
From `packages/tools`, run `node website/processDocs.js --env dev`
1010

11-
### Getting the translations
12-
13-
```shell
14-
CROWDIN_PERSONAL_TOKEN=..... yarn crowdinDownload
15-
```
16-
1711
### Building the doc
1812

1913
From `packages/doc-builder`, run:
@@ -40,6 +34,23 @@ Alternatively, to test the doc website after it has been built, build it using o
4034

4135
Translation is done using https://crowdin.com/
4236

37+
### Uploading the string
38+
39+
```shell
40+
CROWDIN_PERSONAL_TOKEN=..... yarn crowdinUpload
41+
```
42+
43+
### Getting the translations
44+
45+
```shell
46+
CROWDIN_PERSONAL_TOKEN=..... yarn crowdinDownload
47+
```
48+
49+
### Adding a translation
50+
51+
- Make sure the translation is available in Crowdin
52+
- In `packages/doc-builder/docusaurus.config.js`, add the language code to `i18n.locales`
53+
4354
## Building for production
4455

4556
This is done in `release-website.sh` from the repository https://github.com/joplin/website/

packages/doc-builder/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const config = {
4343
// to replace "en" with "zh-Hans".
4444
i18n: {
4545
defaultLocale: 'en',
46-
locales: ['en', 'fr'],
46+
locales: ['en', 'fr', 'de'],
4747
},
4848

4949
plugins: [

0 commit comments

Comments
 (0)