generated from smartcatai/smartcat-serge-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-manuals.serge
59 lines (49 loc) · 1.82 KB
/
user-manuals.serge
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
54
55
56
57
58
59
sync
{
ts
{
@inherit common.serge.inc#common-settings/ts
data
{
# Project ID to synchronize data with.
# To get the ID, navigate to the target project and take it's ID from the URL.
# For example, if the URL is
# https://us.smartcat.ai/projects/01234567-890a-bcde-f012-34567890abcd/files?documentPage=1
# then the ID will be 01234567-890a-bcde-f012-34567890abcd
project_id %ENV:PROJECT_ID%
}
}
vcs
{
@inherit common.serge.inc#common-settings/vcs
data
{
local_path ./vcs/ru_manuals
remote_path https://github.com/stereotech/User-Manuals.git
}
}
}
jobs
{
{
@inherit common.serge.inc#common-settings/job
name Localize User Manuals
id user-manuals.xliff
db_namespace user-manuals
/*
Destination (target) languages must be recognized by Smartcat.
See https://smartcat.ai/Home/Languages
*/
source_language ru
destination_languages en de
source_dir ./vcs/ru_manuals/xliff
source_match \.xlf$
source_process_subdirs YES
output_file_path ./vcs/ru_manuals/%LANG%_xliff/%FILE%
ts_file_path ./ts/ru_manuals/%LANG%/%FILE%.po
parser
{
plugin parse_xliff
}
}
}