-
Notifications
You must be signed in to change notification settings - Fork 28
/
crowdin.yml
53 lines (53 loc) · 1.48 KB
/
crowdin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
project_id: '473798'
api_token_env: CROWDIN_PERSONAL_TOKEN
preserve_hierarchy: true
languages_mapping: &languages_mapping
two_letters_code:
'pt-BR': 'pt-BR'
files: [
# JSON translation files
{
source: '/i18n/en/**/*',
translation: '/i18n/%two_letters_code%/**/%original_file_name%',
languages_mapping: *languages_mapping,
},
# API
# {
# source: '/src/api/**/*',
# translation: '/i18n/%two_letters_code%/api/**/%original_file_name%',
# ignore: [
# 'README.md',
# '.gitignore'
# ],
# languages_mapping: *languages_mapping,
# },
# Docs Markdown files
{
source: '/docs/**/*',
translation: '/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%',
ignore: [
'/docs/components/**/*',
'/docs/**/*.yml',
],
languages_mapping: *languages_mapping,
},
# Blog Markdown files
{
source: '/blog/**/*',
translation: '/i18n/%two_letters_code%/docusaurus-plugin-content-blog/**/%original_file_name%',
ignore: [
'/**/*.yml',
],
languages_mapping: *languages_mapping,
},
# Docs Old versions
{
source: '/versioned_docs/**/*',
translation: '/i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%',
ignore: [
'/versioned_docs/components/**/*',
'/versioned_docs/**/*.yml',
],
languages_mapping: *languages_mapping,
}
]