Skip to content

Commit 8cbc236

Browse files
committed
Version 2.7
1 parent bbccba4 commit 8cbc236

36 files changed

+530
-1120
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.simplelocalize</groupId>
66
<artifactId>simplelocalize-cli</artifactId>
7-
<version>2.6.0</version>
7+
<version>2.7.0</version>
88
<packaging>jar</packaging>
99
<name>simplelocalize-cli</name>
1010
<description>Official SimpleLocalize Command Line Interface</description>
@@ -17,7 +17,7 @@
1717

1818
<!-- versions -->
1919
<junit5.version>5.9.2</junit5.version>
20-
<picocli.version>4.7.5</picocli.version>
20+
<picocli.version>4.7.6</picocli.version>
2121
<jackson.version>2.14.2</jackson.version>
2222
<lombok.version>1.18.30</lombok.version>
2323

reflect-config.json

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@
1010
{ "name" : "debug" }
1111
],
1212
"methods" : [
13-
{ "name" : "download", "parameterTypes" : ["java.lang.String", "java.lang.String", "java.lang.String", "java.util.List", "java.lang.String","java.lang.String", "java.lang.String", "java.lang.String"] },
13+
{ "name" : "download", "parameterTypes" : [
14+
"java.lang.String",
15+
"java.lang.String",
16+
"java.lang.String",
17+
"java.util.List",
18+
"java.lang.String",
19+
"java.lang.String",
20+
"java.lang.String",
21+
"java.lang.String",
22+
"java.lang.String"
23+
] },
1424
{
1525
"name": "extract",
1626
"parameterTypes": [
@@ -31,18 +41,22 @@
3141
]
3242
},
3343
{ "name" : "status", "parameterTypes" : ["java.lang.String", "java.lang.String"] },
34-
{ "name" : "sync", "parameterTypes" : ["java.lang.String", "java.lang.String", "java.lang.String", "java.util.List", "java.lang.String", "java.lang.String", "java.util.List", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String"] },
35-
{ "name" : "upload", "parameterTypes" : ["java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", "java.lang.Boolean", "java.util.List", "java.lang.String", "java.lang.String", "java.lang.String"] },
44+
{ "name" : "upload", "parameterTypes" : [
45+
"java.lang.String",
46+
"java.lang.String",
47+
"java.lang.String",
48+
"java.util.List",
49+
"java.lang.String",
50+
"java.lang.String",
51+
"java.lang.String",
52+
"java.lang.Boolean",
53+
"java.lang.Boolean",
54+
"java.lang.Boolean",
55+
"java.lang.String"
56+
] },
3657
{ "name" : "purge", "parameterTypes" : ["java.lang.String", "java.lang.String", "java.lang.Boolean"] }
3758
]
3859
},
39-
{
40-
"name" : "io.simplelocalize.cli.client.dto.proxy.AutoTranslationConfiguration",
41-
"allDeclaredConstructors" : true,
42-
"allPublicConstructors" : true,
43-
"allDeclaredMethods" : true,
44-
"allPublicMethods" : true
45-
},
4660
{
4761
"name": "io.simplelocalize.cli.client.dto.proxy.SimpleLocalizeJsonMetadata",
4862
"allDeclaredConstructors": true,

simplelocalize.yml

Lines changed: 38 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,54 @@
1-
# Common
2-
apiKey: API_KEY
1+
# Need help with the configuration? Contact us: [email protected]
32

4-
# Business plan option
5-
# customerId: ikea
3+
# Common, required configuration
4+
apiKey: YOUR_PROJECT_API_KEY
65

6+
##############################################################################################
7+
# 'simplelocalize upload' ## Learn more: https://simplelocalize.io/docs/general/file-formats/
8+
##############################################################################################
79

8-
#################################
9-
# 'simplelocalize upload' command
10-
#################################
10+
# Input path for source translations.
11+
# Placeholders:
12+
# - {lang} - language key (optional)
13+
# - {ns} - namespace (optional)
14+
# Examples:
15+
# - ./translations_{lang}.json
16+
# - ./translations_en/{ns}.json
17+
# Use '--dryRun' parameter to see which files will be uploaded without actually uploading them.
18+
uploadPath: ./translations_en.json
1119

12-
# 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.
13-
# For example, if you have translations in 2 languages and 2 namespaces, you can use the following path: ./src/translations/{lang}/{ns}.json.
14-
# Add '--dryRun' parameter to check what translation files will be uploaded without actually uploading them.
15-
uploadPath: ./src/translations.json
20+
# Specify language key for uploaded translations. Language key must match the language key used in SimpleLocalize.
21+
uploadLanguageKey: en
1622

17-
# Upload format is a format of the file(s) with translations.
18-
# Supported formats: https://simplelocalize.io/docs/general/file-formats/
19-
uploadFormat: multi-language-json
23+
# Input format for translations: https://simplelocalize.io/docs/general/file-formats/
24+
uploadFormat: single-language-json
2025

21-
# Upload options are options that are passed to the upload command.
22-
# Supported options: https://simplelocalize.io/docs/general/options/
23-
uploadOptions:
24-
# - 'REPLACE_TRANSLATION_IF_FOUND' # overwrite translation for given a key and namespace if found
2526

2627

27-
###################################
28-
# 'simplelocalize download' command
29-
###################################
28+
#####################################################################################################
29+
# 'simplelocalize download' ## Learn more: https://simplelocalize.io/docs/cli/download-translations/
30+
#####################################################################################################
3031

31-
# 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.
32-
# For example, if you have translations in 2 languages and 2 namespaces, you can use the following path: ./src/translations/{lang}/{ns}.json
33-
downloadPath: ./src/translations.json
32+
# Output path for downloaded translations.
33+
# Placeholders:
34+
# - {lang} - language key (optional)
35+
# - {ns} - namespace (optional)
36+
# Examples:
37+
# - ./translations_{lang}.json
38+
# - ./translations_{lang}/{ns}.json
39+
downloadPath: ./translations_{lang}.json
3440

35-
# Download format is a format of the file(s) with translations.
36-
# Supported formats: https://simplelocalize.io/docs/general/file-formats/
37-
downloadFormat: multi-language-json
41+
# Specify language keys which you want to download, by default all languages are downloaded.
42+
# downloadLanguageKey: ['pl', 'es']
43+
44+
# Output format for translations: https://simplelocalize.io/docs/general/file-formats/
45+
downloadFormat: single-language-json
3846

39-
# Download options are options that are passed to the download command.
40-
# Supported options: https://simplelocalize.io/docs/general/options/
41-
downloadOptions:
42-
# - 'WRITE_NESTED' # write nested JSON
4347

4448

4549
#########################################
46-
# 'simplelocalize auto-translate' command
50+
# 'simplelocalize auto-translate' ## Learn more: https://simplelocalize.io/docs/cli/other-commands/#auto-translate-project
4751
#########################################
4852

49-
# autoTranslation.languageKeys is a list of languages that should be auto-translated.
50-
# Leave empty to auto-translate all project languages.
51-
autoTranslation:
52-
languageKeys:
53-
- 'en'
54-
- 'de'
55-
56-
##################################
57-
# 'simplelocalize extract' command
58-
##################################
59-
60-
# Extract path is a path to a directory with application source code.
61-
searchDir: ./src
62-
63-
# Project type is a type of the project. It is used to extract i18n keys from the source code.
64-
# Supported project types: https://simplelocalize.io/docs/cli/i18n-keys-extraction/
65-
projectType: yahoo/react-intl
66-
67-
# Ignore keys are a list of keys that should be ignored during i18n keys extraction.
68-
ignoreKeys:
69-
- 'WELCOME'
70-
- 'ABOUT-US'
53+
# Specify language keys which you want to auto-translate, leave empty to auto-translate all languages.
54+
# autoTranslateLanguageKeys: ['en', 'de']

0 commit comments

Comments
 (0)