Unverified Commit 5a4ffe0d authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

Allow `locale` key to be used in `config ...` commands. (#1952)

* Allow 'locale'key to be used in 'config ...' commands

* Fix documentation

* Update docs/configuration.md
Co-authored-by: default avatarper1234 <accounts@perglass.com>

* Update docs/configuration.md
Co-authored-by: default avatarper1234 <accounts@perglass.com>
Co-authored-by: default avatarper1234 <accounts@perglass.com>
parent b7598204
...@@ -33,6 +33,7 @@ var validMap = map[string]reflect.Kind{ ...@@ -33,6 +33,7 @@ var validMap = map[string]reflect.Kind{
"directories.builtin.tools": reflect.String, "directories.builtin.tools": reflect.String,
"directories.builtin.libraries": reflect.String, "directories.builtin.libraries": reflect.String,
"library.enable_unsafe_install": reflect.Bool, "library.enable_unsafe_install": reflect.Bool,
"locale": reflect.String,
"logging.file": reflect.String, "logging.file": reflect.String,
"logging.format": reflect.String, "logging.format": reflect.String,
"logging.level": reflect.String, "logging.level": reflect.String,
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
- `enable_unsafe_install` - set to `true` to enable the use of the `--git-url` and `--zip-file` flags with - `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 [`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. 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 format `<language>[_<TERRITORY>[.<encoding>]]` (for example `it` or `it_IT`, or `it_IT.UTF-8`).
- `logging` - configuration options for Arduino CLI's logs. - `logging` - configuration options for Arduino CLI's logs.
- `file` - path to the file where logs will be written. - `file` - path to the file where logs will be written.
- `format` - output format for the logs. Allowed values are `text` or `json`. - `format` - output format for the logs. Allowed values are `text` or `json`.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment