|
1 |
| -project_identifier_env: CROWDIN_JEST_PROJECT_ID |
2 |
| -api_key_env: CROWDIN_JEST_API_KEY |
3 |
| -base_path: './' |
| 1 | +# |
| 2 | +# Your Crowdin credentials |
| 3 | +# |
| 4 | +project_id: '428892' |
| 5 | +api_token_env: 'CROWDIN_PERSONAL_TOKEN' |
| 6 | + |
| 7 | +base_path: '.' |
| 8 | +base_url: 'https://api.crowdin.com' |
4 | 9 | preserve_hierarchy: true
|
5 | 10 |
|
| 11 | +# See Yaml anchors: https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/ |
| 12 | +languages_mapping: &languages_mapping |
| 13 | + locale: |
| 14 | + 'es-ES': 'es-ES' |
| 15 | + 'ja': 'ja' |
| 16 | + 'pt-BR': 'pt-BR' |
| 17 | + 'ro': 'ro' |
| 18 | + 'ru': 'ru' |
| 19 | + 'uk': 'uk' |
| 20 | + 'zh-CN': 'zh-Hans' |
| 21 | + |
| 22 | +# |
| 23 | +# Files configuration |
| 24 | +# see https://support.crowdin.com/configuration-file/ |
| 25 | +# |
6 | 26 | files:
|
7 |
| - - source: '/docs/*.md' |
8 |
| - translation: '/website/translated_docs/%locale%/%original_file_name%' |
9 |
| - languages_mapping: &anchor |
10 |
| - locale: |
11 |
| - 'af': 'af' |
12 |
| - 'ar': 'ar' |
13 |
| - 'bs-BA': 'bs-BA' |
14 |
| - 'ca': 'ca' |
15 |
| - 'cs': 'cs' |
16 |
| - 'da': 'da' |
17 |
| - 'de': 'de' |
18 |
| - 'el': 'el' |
19 |
| - 'es-ES': 'es-ES' |
20 |
| - 'fa': 'fa-IR' |
21 |
| - 'fi': 'fi' |
22 |
| - 'fr': 'fr' |
23 |
| - 'he': 'he' |
24 |
| - 'hu': 'hu' |
25 |
| - 'id': 'id-ID' |
26 |
| - 'it': 'it' |
27 |
| - 'ja': 'ja' |
28 |
| - 'ko': 'ko' |
29 |
| - 'mr': 'mr-IN' |
30 |
| - 'nl': 'nl' |
31 |
| - 'no': 'no-NO' |
32 |
| - 'pl': 'pl' |
33 |
| - 'pt-BR': 'pt-BR' |
34 |
| - 'pt-PT': 'pt-PT' |
35 |
| - 'ro': 'ro' |
36 |
| - 'ru': 'ru' |
37 |
| - 'sk': 'sk-SK' |
38 |
| - 'sr': 'sr' |
39 |
| - 'sv-SE': 'sv-SE' |
40 |
| - 'tr': 'tr' |
41 |
| - 'uk': 'uk' |
42 |
| - 'vi': 'vi' |
43 |
| - 'zh-CN': 'zh-Hans' |
44 |
| - 'zh-TW': 'zh-Hant' |
45 |
| - - source: '/website/versioned_docs/**/*.md' |
46 |
| - translation: '/website/translated_docs/%locale%/**/%original_file_name%' |
47 |
| - languages_mapping: *anchor |
48 |
| - - source: '/website/i18n/en.json' |
49 |
| - translation: '/website/i18n/%locale%.json' |
50 |
| - languages_mapping: *anchor |
| 27 | + [ |
| 28 | + { |
| 29 | + 'source': '/website/i18n/en/**/*', |
| 30 | + 'translation': '/website/i18n/%locale%/**/%original_file_name%', |
| 31 | + 'languages_mapping': *languages_mapping, |
| 32 | + }, |
| 33 | + { |
| 34 | + 'source': '/docs/**/*', |
| 35 | + 'translation': '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%', |
| 36 | + 'languages_mapping': *languages_mapping, |
| 37 | + }, |
| 38 | + { |
| 39 | + 'source': '/website/versioned_docs/**/*', |
| 40 | + 'translation': '/website/i18n/%locale%/docusaurus-plugin-content-docs/**/%original_file_name%', |
| 41 | + 'languages_mapping': *languages_mapping, |
| 42 | + }, |
| 43 | + { |
| 44 | + 'source': '/website/blog/**/*', |
| 45 | + 'translation': '/website/i18n/%locale%/docusaurus-plugin-content-blog/**/%original_file_name%', |
| 46 | + 'languages_mapping': *languages_mapping, |
| 47 | + }, |
| 48 | + ] |
0 commit comments