Update both Chinese languague

This commit is contained in:
Donald Zou
2024-11-03 17:36:03 +08:00
parent d1ea8081e4
commit eaac12ddc8
6 changed files with 155 additions and 96 deletions

View File

@@ -67,7 +67,7 @@ export default {
</h6>
<div class="mb-1">
<small class="text-muted">
Public Key
<LocaleText t="Public Key"></LocaleText>
</small>
<small class="d-block">
<samp>{{Peer.id}}</samp>

View File

@@ -29,7 +29,7 @@ export default {
this.store.Configuration.Server.dashboard_language = lang_id;
this.store.Locale = res.data
}else{
this.store.newMessage("Server", "Dashboard language update failed", "danger")
this.store.newMessage("Server", "WGDashboard language update failed", "danger")
}
})
}

View File

@@ -1,17 +0,0 @@
import subprocess
def _generateKeyPairs(amount: int) -> list[list[str]] | None:
try:
pairs = subprocess.check_output(
f'''for ((i = 0 ; i<{amount} ; i++ ));do privateKey=$(wg genkey) presharedKey=$(wg genkey) publicKey=$(wg pubkey <<< "$privateKey") echo "$privateKey,$publicKey,$presharedKey"; done''', shell=True, stderr=subprocess.STDOUT
)
pairs = pairs.decode().split("\n")
print(pairs)
return [x.split(",") for x in pairs]
except subprocess.CalledProcessError as exp:
print(str(exp))
return []
_generateKeyPairs(20)