forked from 99designs/smartling
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsmartling.yml.example
75 lines (60 loc) · 2.49 KB
/
smartling.yml.example
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Config file is optional and all configuration options can be set from command
# line interface.
# (required) Smartling API V2.0 User Identifier used for authentication.
#
# Must be set either in config file or be passed via command line arguments.
user_id:
"YOUR_USER_ID_HERE"
# (required) Smartling API V2.0 Token Secret used for authentication.
#
# Must be set either in config file or be passed via command line arguments.
secret:
"YOUR_SECRET_TOKEN_HERE"
# (optional) Account ID used for projects list requests.
account_id:
"YOUR_ACCOUT_ID_HERE"
# (optional) Project ID you are working on.
project_id:
"YOUR_PROJECT_ID_HERE"
# (optional) Use specified URL as proxy in case Smartling is not directly
# accessible. An example:
# http://192.168.0.1:3128 - proxy without authentication
# http://user:[email protected]:3128 - proxy with authentication
#proxy:
# "PROXY_URL"
# (optional) Additional file-specific settings for push and pull commands.
files:
# (optional) Special default section will apply configuration to all file
# types except files, which URIs match following rules.
default:
# (optional) Defines pull-specific options.
pull:
# (optional) Format, which will be used to format file name.
#
# If not set, then default format will be used or format,
# that is set via command line options.
format: "{{name .FileURI}}{{with .Locale}}_{{.}}{{end}}{{ext .FileURI}}"
# (optional) Specific file settings which uses same pattern rules as CLI
# tool:
# > * - matches everything except /.
# > ** - matches everything.
#
# Note, that pattern should start either with /, * or ** to be matched
# in case when file was pushed with leading /. Checkout files list in
# your project first.
"/path/to/*.properties":
# (optional) Defines push-specific options.
push:
# (optional) Overrides automatically detected file type.
type: "java_properties"
# (optional) Sets specific API directives, which are used only
# for push command. Refer to Smartling API documentation for
# list of that directives.
directives:
namespace: "java"
file_charset: "utf-8"
# Any number of custom smartling directives can be specified
# there.
pull:
format: "{{name .FileURI}}{{with .Locale}}_{{.}}{{end}}{{ext .FileURI}}"
# vim: ft=yaml