Merge pull request #9924 from ly5156/etcd-translation

fix(EtcdInfoBanner): use commas to separate etcd information
This commit is contained in:
Francesco Torchia 2023-11-24 10:24:38 +01:00 committed by GitHub
commit c9415d1207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -2080,7 +2080,7 @@ drainNode:
etcdInfoBanner: etcdInfoBanner:
hasLeader: "ETCD 有一个 Leader" hasLeader: "ETCD 有一个 Leader"
leaderChanges: "Leader 变化的次数:" leaderChanges: "Leader 变化的次数:"
failedProposals: "失败的 proposal 数量" failedProposals: "失败的 proposal 数量"
fleet: fleet:
dashboard: dashboard:

View File

@ -23,13 +23,13 @@ export default {
const leader = await hasLeader(monitoringVersion, this.$store.dispatch, this.currentCluster.id); const leader = await hasLeader(monitoringVersion, this.$store.dispatch, this.currentCluster.id);
this.hasLeader = leader ? this.t('generic.yes') : this.t('generic.no'); this.hasLeader = leader ? 'Yes' : 'No';
this.leaderChanges = await leaderChanges(monitoringVersion, this.$store.dispatch, this.currentCluster.id); this.leaderChanges = await leaderChanges(monitoringVersion, this.$store.dispatch, this.currentCluster.id);
this.failedProposals = await failedProposals(monitoringVersion, this.$store.dispatch, this.currentCluster.id); this.failedProposals = await failedProposals(monitoringVersion, this.$store.dispatch, this.currentCluster.id);
}, },
data() { data() {
return { return {
hasLeader: this.t('generic.no'), hasLeader: 'No',
leaderChanges: 0, leaderChanges: 0,
failedProposals: 0 failedProposals: 0
}; };
@ -46,10 +46,10 @@ export default {
color="info" color="info"
> >
<div class="datum"> <div class="datum">
<label>{{ t('etcdInfoBanner.hasLeader') }}</label> {{ hasLeader }} <label>{{ t('etcdInfoBanner.hasLeader') }}</label> {{ hasLeader }},
</div> </div>
<div class="datum"> <div class="datum">
<label>{{ t('etcdInfoBanner.leaderChanges') }}</label> {{ leaderChanges }} <label>{{ t('etcdInfoBanner.leaderChanges') }}</label> {{ leaderChanges }},
</div> </div>
<div class="datum"> <div class="datum">
<label>{{ t('etcdInfoBanner.failedProposals') }}</label> {{ failedProposals }} <label>{{ t('etcdInfoBanner.failedProposals') }}</label> {{ failedProposals }}