Skip to content

Commit 39f150a

Browse files
authored
Locale is now refreshed on Init (arduino#1555)
1 parent 9c13e87 commit 39f150a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands/instances.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@ func Init(req *rpc.InitRequest, responseCallback func(r *rpc.InitResponse)) erro
334334
})
335335
}
336336

337+
// Refreshes the locale used, this will change the
338+
// language of the CLI if the locale is different
339+
// after started.
340+
i18n.Init(configuration.Settings.GetString("locale"))
341+
337342
return nil
338343
}
339344

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy