Skip to content

Commit 2fb817b

Browse files
feat: add translation for calculator page
1 parent 0b5a17c commit 2fb817b

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

i18n/locales/en.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,12 @@
246246
},
247247
"estimation": {
248248
"possibleImprovements": "Possible improvements:"
249+
},
250+
"calculator": {
251+
"seeOnCatalog": "See on catalog",
252+
"alternativeRegion": "Alternative region <span class=\"text-xs\">(optional)</span>",
253+
"back": "Back",
254+
"save": "Save",
255+
"myInfrastructures": "My infrastructures:"
249256
}
250257
}

i18n/locales/fr.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,12 @@
246246
},
247247
"estimation": {
248248
"possibleImprovements": "Quelques axes d'amélioration :"
249+
},
250+
"calculator": {
251+
"seeOnCatalog": "Voir sur le catalogue",
252+
"alternativeRegion": "Région alternative <span class=\"text-xs\">(optionnelle)</span>",
253+
"back": "Retour",
254+
"save": "Enregistrer",
255+
"myInfrastructures": "Mes infrastructures :"
249256
}
250257
}

pages/calculatrice/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
<div class="grid gap-8">
2323
<section class="grid gap-4">
2424
<div class="flex items-center justify-between">
25-
<h2 class="font-title font-bold text-3xl">Mes infrastructures :</h2>
25+
<h2 class="font-title font-bold text-3xl">
26+
{{ $t("calculator.myInfrastructures") }}
27+
</h2>
2628
<InfrastructureCreate
2729
class="ml-auto"
2830
@infra-created="handleInfraCreated"

pages/calculatrice/infrastructure/[infrastructureID]/available-services.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
Configurer
4545
</button>
4646
<a v-if="false" href="#" class="text-black underline italic">
47-
Voir sur le catalogue
47+
{{ $t("calculator.seeOnCatalog") }}
4848
</a>
4949
</div>
5050
</div>

pages/calculatrice/infrastructure/[infrastructureID]/create-component.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
<input id="checkbox" v-model="isOtherRegion" type="checkbox" />
5454
<label for="checkbox">
5555
<div>
56-
Région alternative
57-
<span class="text-xs">(optionnelle)</span>
56+
{{ $t("calculator.alternativeRegion") }}
5857
</div>
5958
</label>
6059
</div>
@@ -70,13 +69,13 @@
7069
class="bg-black text-white p-2 rounded-md hover:bg-iroco-light-green focus:outline-none focus:shadow-outline-blue active:bg-blue-800"
7170
@click="handleBackClick"
7271
>
73-
Retour
72+
{{ $t("calculator.back") }}
7473
</button>
7574
<button
7675
type="submit"
7776
class="bg-black text-white p-2 rounded-md hover:bg-iroco-light-green focus:outline-none focus:shadow-outline-blue active:bg-blue-800"
7877
>
79-
Enregistrer
78+
{{ $t("calculator.save") }}
8079
</button>
8180
</div>
8281
</div>

0 commit comments

Comments
 (0)