From bc3c6e3d4de233959092e9931beffdb97f2c1b32 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 26 Oct 2022 17:34:15 +0200 Subject: [PATCH 1/4] Allow 'locale'key to be used in 'config ...' commands --- cli/config/validate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/config/validate.go b/cli/config/validate.go index 6d04b4bada4..1ac6c538e1f 100644 --- a/cli/config/validate.go +++ b/cli/config/validate.go @@ -33,6 +33,7 @@ var validMap = map[string]reflect.Kind{ "directories.builtin.tools": reflect.String, "directories.builtin.libraries": reflect.String, "library.enable_unsafe_install": reflect.Bool, + "locale": reflect.String, "logging.file": reflect.String, "logging.format": reflect.String, "logging.level": reflect.String, From b62cf8bb4d1b6042d4a0de5516213344d03b70bb Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 26 Oct 2022 17:34:24 +0200 Subject: [PATCH 2/4] Fix documentation --- docs/configuration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index ec1c035218f..82c9f8b5130 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -18,6 +18,8 @@ - `enable_unsafe_install` - set to `true` to enable the use of the `--git-url` and `--zip-file` flags with [`arduino-cli lib install`][arduino cli lib install]. These are considered "unsafe" installation methods because they allow installing files that have not passed through the Library Manager submission process. +- `locale` - the language used by Arduino CLI, the parameter is the language identifier in the standard format + `_.` (for example `it` or `it_IT`, or `it_IT.UTF-8`). - `logging` - configuration options for Arduino CLI's logs. - `file` - path to the file where logs will be written. - `format` - output format for the logs. Allowed values are `text` or `json`. From 7f1efe8abb9a0311e3a7f7beca2d3d0d2ce6409f Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 27 Oct 2022 23:31:08 +0200 Subject: [PATCH 3/4] Update docs/configuration.md Co-authored-by: per1234 --- docs/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 82c9f8b5130..badbbb08326 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -18,8 +18,8 @@ - `enable_unsafe_install` - set to `true` to enable the use of the `--git-url` and `--zip-file` flags with [`arduino-cli lib install`][arduino cli lib install]. These are considered "unsafe" installation methods because they allow installing files that have not passed through the Library Manager submission process. -- `locale` - the language used by Arduino CLI, the parameter is the language identifier in the standard format - `_.` (for example `it` or `it_IT`, or `it_IT.UTF-8`). +- `locale` - the language used by Arduino CLI to communicate to the user, the parameter is the language identifier in + the standard POSIX/Unix format `_.` (for example `it` or `it_IT`, or `it_IT.UTF-8`). - `logging` - configuration options for Arduino CLI's logs. - `file` - path to the file where logs will be written. - `format` - output format for the logs. Allowed values are `text` or `json`. From 282fade40380df34e81668487bdcffc9027c8e74 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 28 Oct 2022 09:29:50 +0200 Subject: [PATCH 4/4] Update docs/configuration.md Co-authored-by: per1234 --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index badbbb08326..16cacfcc5a6 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -19,7 +19,7 @@ [`arduino-cli lib install`][arduino cli lib install]. These are considered "unsafe" installation methods because they allow installing files that have not passed through the Library Manager submission process. - `locale` - the language used by Arduino CLI to communicate to the user, the parameter is the language identifier in - the standard POSIX/Unix format `_.` (for example `it` or `it_IT`, or `it_IT.UTF-8`). + the standard POSIX format `[_[.]]` (for example `it` or `it_IT`, or `it_IT.UTF-8`). - `logging` - configuration options for Arduino CLI's logs. - `file` - path to the file where logs will be written. - `format` - output format for the logs. Allowed values are `text` or `json`.