-
Notifications
You must be signed in to change notification settings - Fork 38
/
simplelocalize.yml
58 lines (45 loc) · 2.56 KB
/
simplelocalize.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
54
55
56
57
58
# Common
# apiKey: API_KEY // Stored in GH secrets
#################################
# 'simplelocalize upload' command
#################################
# Upload path is a path to a file(s) with translations. Use {lang} placeholder to specify language or locale and {ns} placeholder to specify namespace.
# For example, if you have translations in 2 languages and 2 namespaces, you can use the following path: ./src/translations/{lang}/{ns}.json.
# Add '--dryRun' parameter to check what translation files will be uploaded without actually uploading them.
uploadPath: ./apps/extension/public/locales/{lang}/{ns}.json
# Upload format is a format of the file(s) with translations.
# Supported formats: https://simplelocalize.io/docs/general/file-formats/
uploadFormat: single-language-json
# Upload options are options that are passed to the upload command.
# Supported options: https://simplelocalize.io/docs/general/options/
# uploadOptions:
# # - 'REPLACE_TRANSLATION_IF_FOUND' # overwrite translation for given a key and namespace if found
###################################
# 'simplelocalize download' command
###################################
# Download path is a path to a file(s) with translations. Use {lang} placeholder to specify language or locale and {ns} placeholder to specify namespace.
# For example, if you have translations in 2 languages and 2 namespaces, you can use the following path: ./src/translations/{lang}/{ns}.json
downloadPath: ./apps/extension/public/locales/{lang}/{ns}.json
# Download format is a format of the file(s) with translations.
# Supported formats: https://simplelocalize.io/docs/general/file-formats/
downloadFormat: multi-language-json
# Download options are options that are passed to the download command.
# Supported options: https://simplelocalize.io/docs/general/options/
downloadOptions:
# - 'WRITE_NESTED' # write nested JSON
#########################################
# 'simplelocalize auto-translate' command
#########################################
# autoTranslation.languageKeys is a list of languages that should be auto-translated.
# Leave empty to auto-translate all project languages.
autoTranslation:
languageKeys:
- "en"
##################################
# 'simplelocalize extract' command
##################################
# Extract path is a path to a directory with application source code.
searchDir: ./apps/extension/src
# Project type is a type of the project. It is used to extract i18n keys from the source code.
# Supported project types: https://simplelocalize.io/docs/cli/i18n-keys-extraction/
projectType: i18next/i18next