diff --git a/src/i18n/en.json b/src/i18n/en.json
index fd902f2..302c262 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -356,6 +356,7 @@
"rest": "The rest is used to pay our other costs and to compensate the Iroco team."
},
"chart": {
+ "title": "Breakdown of service costs for Iroco",
"tax": {
"title": "VAT",
"percentage": ": 20% (i.e. 16% including taxes)"
diff --git a/src/i18n/fr.json b/src/i18n/fr.json
index 69e1084..f33a8ef 100644
--- a/src/i18n/fr.json
+++ b/src/i18n/fr.json
@@ -355,6 +355,7 @@
"rest": "Le reste sert à payer nos autres frais et à rémunérer l'équipe d'Iroco."
},
"chart": {
+ "title": "Diagramme de répartition des coûts de service pour Iroco",
"tax": {
"title": "TVA",
"percentage": ": 20% (soit 16% HT)"
diff --git a/src/lib/Chart.svelte b/src/lib/SubscriptionChart.svelte
similarity index 95%
rename from src/lib/Chart.svelte
rename to src/lib/SubscriptionChart.svelte
index bdfdb79..ef00fce 100644
--- a/src/lib/Chart.svelte
+++ b/src/lib/SubscriptionChart.svelte
@@ -11,7 +11,7 @@
role="img"
width={(5 * size) / 3}
>
-
Subscription Chart
+ {$_("faq.questions.subscription.chart.title")}
{$_("faq.questions.subscription.chart.payment.title")}
{$_("faq.questions.subscription.chart.payment.percentage")}
@@ -85,7 +85,7 @@
y="16"
transform="translate(182 347)"
fill="#f2ebe3"
- font-fontSize="1rem"
+ font-size="1rem"
>
{$_("faq.questions.subscription.chart.hosting.title")}
{$_("faq.questions.subscription.chart.hosting.percentage")}
@@ -98,7 +98,7 @@
y="16"
transform="translate(90 85)"
fill="#f2ebe3"
- font-fontSize="1rem"
+ font-size="1rem"
>
{$_("faq.questions.subscription.chart.iroco.title")}
{$_("faq.questions.subscription.chart.iroco.percentage")}
diff --git a/src/routes/faq/+page.svelte b/src/routes/faq/+page.svelte
index 2057755..c4292da 100644
--- a/src/routes/faq/+page.svelte
+++ b/src/routes/faq/+page.svelte
@@ -1,7 +1,7 @@
@@ -227,7 +227,7 @@
{$_("faq.questions.subscription.list.deployment")}
{$_("faq.questions.subscription.list.rest")}
-
+
diff --git a/test/unit/Chart.test.js b/test/unit/Chart.test.js
index d990129..aaa859f 100644
--- a/test/unit/Chart.test.js
+++ b/test/unit/Chart.test.js
@@ -1,7 +1,7 @@
/*global describe, test, expect*/
import "@testing-library/jest-dom/extend-expect";
import { render } from "@testing-library/svelte";
-import Chart from "../../src/lib/Chart.svelte";
+import Chart from "$lib/SubscriptionChart.svelte";
import en from "../../src/i18n/en.json";
import { addMessages, init } from "svelte-i18n";