Skip to content

Commit 5958797

Browse files
authored
Merge pull request #9 from AI4REALNET/fix-context-existence-lang
added nocontext var to locales
2 parents 9ca70f5 + 1057612 commit 5958797

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

frontend/src/entities/PowerGrid/CAB/Context.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Context :tabs="[$t('cab.tab.context')]">
33
<template v-if="appStore.tab.context === 0">
44
<img v-if="context" :src="`data:image/png;base64, ${context}`" class="cab-context-topology" />
5-
<h1 v-else>Pas de contexte</h1>
5+
<h1 v-else>{{ $t('cab.tab.nocontext') }}</h1>
66
</template>
77
<Notification
88
:card="appStore.card('PowerGrid')"

frontend/src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"cab.status.notifications": "Notifications",
3535
"cab.status.requests": "Requests",
3636
"cab.tab.context": "Context",
37+
"cab.tab.nocontext": "No context available",
3738
"cab.tab.dependencies": "Dependencies",
3839
"cab.tab.graph": "Graph",
3940
"cab.tab.map": "Map",

frontend/src/locales/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"cab.status.notifications": "Notifications",
3535
"cab.status.requests": "Requêtes",
3636
"cab.tab.context": "Contexte",
37+
"cab.tab.nocontext": "Aucun contexte disponible",
3738
"cab.tab.graph": "Graphe",
3839
"cab.tab.map": "Carte",
3940
"cab.tab.network": "Réseau",

0 commit comments

Comments
 (0)