mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-05 04:47:37 +03:00
Add locale support ford deprecated messages
This commit is contained in:
parent
2ac2589d14
commit
e6847ff50e
4 changed files with 53 additions and 4 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
|
||||
"github.com/sagernet/sing-box/common/humanize"
|
||||
C "github.com/sagernet/sing-box/constant"
|
||||
"github.com/sagernet/sing-box/experimental/locale"
|
||||
_ "github.com/sagernet/sing-box/include"
|
||||
"github.com/sagernet/sing-box/log"
|
||||
)
|
||||
|
@ -54,6 +55,10 @@ func SetupWithUsername(basePath string, workingPath string, tempPath string, use
|
|||
return nil
|
||||
}
|
||||
|
||||
func SetLocale(localeId string) {
|
||||
locale.Set(localeId)
|
||||
}
|
||||
|
||||
func Version() string {
|
||||
return C.Version
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue