File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ func SetDefaults(settings *Settings) {
73
73
setKeyTypeSchema ("network.user_agent_ext" , "" )
74
74
75
75
// locale
76
- setDefaultValueAndKeyTypeSchema ("locale" , "en " )
76
+ setKeyTypeSchema ("locale" , "" )
77
77
}
78
78
79
79
// InjectEnvVars change settings based on the environment variables values
Original file line number Diff line number Diff line change @@ -931,3 +931,16 @@ func TestConfigViaEnvVars(t *testing.T) {
931
931
require .NoError (t , err )
932
932
require .Equal (t , "20\n \n " , string (out ))
933
933
}
934
+
935
+ func TestI18N (t * testing.T ) {
936
+ env , cli := integrationtest .CreateArduinoCLIWithEnvironment (t )
937
+ defer env .CleanUp ()
938
+
939
+ out , _ , err := cli .RunWithCustomEnv (map [string ]string {"LANG" : "it" })
940
+ require .NoError (t , err )
941
+ require .Contains (t , string (out ), "Comandi disponibili" )
942
+
943
+ out , _ , err = cli .RunWithCustomEnv (map [string ]string {"LANG" : "en" })
944
+ require .NoError (t , err )
945
+ require .Contains (t , string (out ), "Available Commands" )
946
+ }
You can’t perform that action at this time.
0 commit comments