Skip to content

Commit 5a4ffe0

Browse files
cmaglieper1234
andauthored
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: per1234 <[email protected]> * Update docs/configuration.md Co-authored-by: per1234 <[email protected]> Co-authored-by: per1234 <[email protected]>
1 parent b759820 commit 5a4ffe0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: cli/config/validate.go

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var validMap = map[string]reflect.Kind{
3333
"directories.builtin.tools": reflect.String,
3434
"directories.builtin.libraries": reflect.String,
3535
"library.enable_unsafe_install": reflect.Bool,
36+
"locale": reflect.String,
3637
"logging.file": reflect.String,
3738
"logging.format": reflect.String,
3839
"logging.level": reflect.String,

Diff for: docs/configuration.md

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- `enable_unsafe_install` - set to `true` to enable the use of the `--git-url` and `--zip-file` flags with
1919
[`arduino-cli lib install`][arduino cli lib install]. These are considered "unsafe" installation methods because
2020
they allow installing files that have not passed through the Library Manager submission process.
21+
- `locale` - the language used by Arduino CLI to communicate to the user, the parameter is the language identifier in
22+
the standard POSIX format `<language>[_<TERRITORY>[.<encoding>]]` (for example `it` or `it_IT`, or `it_IT.UTF-8`).
2123
- `logging` - configuration options for Arduino CLI's logs.
2224
- `file` - path to the file where logs will be written.
2325
- `format` - output format for the logs. Allowed values are `text` or `json`.

0 commit comments

Comments
 (0)