-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlangcodec.example.toml
More file actions
50 lines (38 loc) · 1.4 KB
/
langcodec.example.toml
File metadata and controls
50 lines (38 loc) · 1.4 KB
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
# Example langcodec.toml
#
# langcodec looks for this file in the current directory and then walks up
# parent directories until it finds one. You can also pass an explicit path:
# langcodec translate --config /absolute/path/to/langcodec.toml
# langcodec annotate --config /absolute/path/to/langcodec.toml
#
# Config file support is currently used by the `translate` and `annotate` commands.
[openai]
model = "gpt-5.4"
[translate]
# Optional. Defaults to 4.
concurrency = 4
[translate.input]
source = "locales/Localizable.xcstrings"
# Optional, but useful when the source contains multiple languages.
lang = "en"
# Optional. Defaults to ["new", "stale"].
# Only target entries with one of these statuses will be translated.
status = ["new", "stale"]
[translate.output]
# Required unless you pass --target-lang.
lang = ["fr"]
# Optional. Defaults to "needs_review".
# Allowed values: needs_review, translated
status = "translated"
[annotate]
input = "locales/Localizable.xcstrings"
source_roots = ["Sources", "Modules"]
# Optional. Defaults to in-place updates of `input`.
# output = "locales/Localizable.annotated.xcstrings"
# Optional alternative for fan-out runs across multiple catalogs.
# Cannot be combined with `input` or `output`.
# inputs = ["locales/App.xcstrings", "locales/Shared.xcstrings"]
# Optional. Defaults to the catalog's sourceLanguage.
source_lang = "en"
# Optional. Defaults to 4.
concurrency = 4