File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 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) {
7373 setKeyTypeSchema ("network.user_agent_ext" , "" )
7474
7575 // locale
76- setDefaultValueAndKeyTypeSchema ("locale" , "en " )
76+ setKeyTypeSchema ("locale" , "" )
7777}
7878
7979// 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) {
931931 require .NoError (t , err )
932932 require .Equal (t , "20\n \n " , string (out ))
933933}
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