-
Notifications
You must be signed in to change notification settings - Fork 1
/
trconfig.yaml
66 lines (53 loc) · 2.27 KB
/
trconfig.yaml
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
## output dir for json translations by locale
## (*) represents the locale
#output_json_template: assets/i18n/*.json
## output dir for arb translations files by locale
## Useful if you have intl setup or "Intl plugin" in your IDE.
## (*) represents the locale
#output_arb_template: lib/l10n/intl_*
output_arb_template: lib/l10n/app_*.arb
## main entry file to generate the unique translation json.
entry_file: strings/strings.yaml
## pattern to applies final variables in the generated json/dart Strings.
## Enclose * in the pattern you need.
## {*} = {{name}} becomes {name}
## %* = {{name}} becomes %name
## (*) = {{name}} becomes (name)
## - Special case when you need * as prefix or suffix, use *? as splitter
## ***?** = {{name}} becomes **name**
param_output_pattern: "{*}"
dart:
## Output dir for dart files
output_dir: lib/i18n
## Translation Key class and filename reference
#keys_id: TKeys
## Translations map class an filename reference.
translations_id: TData
## translations as Dart files Maps (available in translations.dart).
use_maps: false
## see: https://cloud.google.com/translate/docs/languages
## All locales to be supported.
locales:
- en
- th
- hi
## Google Sheets Configuration
## How to get your credentials?
## see: https://github.com/roipeker/flutter_translation_sheet/wiki/Google-credentials
gsheets:
## For a performance boost on big datasets, to try to use the GoogleTranslate formula once,
## enable "Iterative Calculations" manually in your worksheet to avoid the #VALUE error.
## Go to:
## File > Spreadsheet Settings > Calculation > set "Iterative calculation" to "On"
## Or check:
## https://support.google.com/docs/answer/58515?hl=en&co=GENIE.Platform%3DDesktop#zippy=%2Cchoose-how-often-formulas-calculate
use_iterative_cache: false
## Use relative or absolute path to your json credentials.
## Check the wiki for a step by step tutorial:
## https://github.com/roipeker/flutter_translation_sheet/wiki/Google-credentials
credentials_path: credentials.json
## Open your google sheet and copy the SHEET_ID from the url:
## https://docs.google.com/spreadsheets/d/{SHEET_ID}/edit#gid=0
spreadsheet_id: 1Ch6MYwRmchvuJ_OtoJ5mw1sQy0tIHHAHlP3j86F7CZE
## The spreadsheet "table" where your translation will live.
worksheet: Sheet1