mirror of https://github.com/laurent22/joplin.git
Doc: Add support for German translation
parent
4226044527
commit
26276efc03
15
crowdin.yml
15
crowdin.yml
|
@ -6,18 +6,19 @@ files:
|
|||
- source: /readme/**/*
|
||||
translation: /readme/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%
|
||||
ignore:
|
||||
- /**/*.jpg
|
||||
- /**/*.json
|
||||
- /**/*.png
|
||||
- /**/*.yml
|
||||
- /readme/_i18n
|
||||
- /readme/i18n
|
||||
- /readme/about/changelog
|
||||
- /readme/about/stats.md
|
||||
- /readme/api
|
||||
- /readme/dev
|
||||
- /readme/news
|
||||
- /readme/cla.md
|
||||
- /readme/connection_check.md
|
||||
- /readme/dev
|
||||
- /readme/i18n
|
||||
- /readme/licenses.md
|
||||
- /readme/news
|
||||
- /readme/privacy.md
|
||||
- /**/*.yml
|
||||
- /**/*.json
|
||||
- /**/*.png
|
||||
- /**/*.jpg
|
||||
|
|
@ -8,12 +8,6 @@ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern sta
|
|||
|
||||
From `packages/tools`, run `node website/processDocs.js --env dev`
|
||||
|
||||
### Getting the translations
|
||||
|
||||
```shell
|
||||
CROWDIN_PERSONAL_TOKEN=..... yarn crowdinDownload
|
||||
```
|
||||
|
||||
### Building the doc
|
||||
|
||||
From `packages/doc-builder`, run:
|
||||
|
@ -40,6 +34,23 @@ Alternatively, to test the doc website after it has been built, build it using o
|
|||
|
||||
Translation is done using https://crowdin.com/
|
||||
|
||||
### Uploading the string
|
||||
|
||||
```shell
|
||||
CROWDIN_PERSONAL_TOKEN=..... yarn crowdinUpload
|
||||
```
|
||||
|
||||
### Getting the translations
|
||||
|
||||
```shell
|
||||
CROWDIN_PERSONAL_TOKEN=..... yarn crowdinDownload
|
||||
```
|
||||
|
||||
### Adding a translation
|
||||
|
||||
- Make sure the translation is available in Crowdin
|
||||
- In `packages/doc-builder/docusaurus.config.js`, add the language code to `i18n.locales`
|
||||
|
||||
## Building for production
|
||||
|
||||
This is done in `release-website.sh` from the repository https://github.com/joplin/website/
|
||||
|
|
|
@ -43,7 +43,7 @@ const config = {
|
|||
// to replace "en" with "zh-Hans".
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: ['en', 'fr'],
|
||||
locales: ['en', 'fr', 'de'],
|
||||
},
|
||||
|
||||
plugins: [
|
||||
|
|
Loading…
Reference in New Issue