Skip to content

Commit 321affc

Browse files
committed
chore: fixed translations naming
1 parent 7f52c58 commit 321affc

File tree

5 files changed

+146
-146
lines changed

5 files changed

+146
-146
lines changed

public/static/locales/de.json

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"ContactForm": {
3-
"Company": "__NOT_TRANSLATED__",
4-
"Content": "__NOT_TRANSLATED__",
5-
"Description": "__NOT_TRANSLATED__",
6-
"Email": "__NOT_TRANSLATED__",
7-
"Error": "__NOT_TRANSLATED__",
8-
"Name": "__NOT_TRANSLATED__",
9-
"Phone": "__NOT_TRANSLATED__",
10-
"Send": "__NOT_TRANSLATED__",
11-
"Subject": "__NOT_TRANSLATED__",
12-
"Surname": "__NOT_TRANSLATED__",
13-
"Title": "__NOT_TRANSLATED__"
2+
"contactForm": {
3+
"company": "__NOT_TRANSLATED__",
4+
"content": "__NOT_TRANSLATED__",
5+
"description": "__NOT_TRANSLATED__",
6+
"email": "__NOT_TRANSLATED__",
7+
"error": "__NOT_TRANSLATED__",
8+
"name": "__NOT_TRANSLATED__",
9+
"phone": "__NOT_TRANSLATED__",
10+
"send": "__NOT_TRANSLATED__",
11+
"subject": "__NOT_TRANSLATED__",
12+
"surname": "__NOT_TRANSLATED__",
13+
"title": "__NOT_TRANSLATED__"
1414
},
1515
"hero": {
1616
"header": "__NOT_TRANSLATED__"
@@ -29,36 +29,36 @@
2929
"joinus": "__NOT_TRANSLATED__",
3030
"learnmore": "__NOT_TRANSLATED__"
3131
},
32-
"Offers": {
33-
"Card1": {
34-
"Paragraph1": "__NOT_TRANSLATED__",
35-
"Paragraph2": "__NOT_TRANSLATED__",
36-
"Title": "__NOT_TRANSLATED__"
32+
"offers": {
33+
"card1": {
34+
"paragraph1": "__NOT_TRANSLATED__",
35+
"paragraph2": "__NOT_TRANSLATED__",
36+
"title": "__NOT_TRANSLATED__"
3737
},
38-
"Card2": {
39-
"Paragraph1": "__NOT_TRANSLATED__",
40-
"Paragraph2": "__NOT_TRANSLATED__",
41-
"Title": "__NOT_TRANSLATED__"
38+
"card2": {
39+
"paragraph1": "__NOT_TRANSLATED__",
40+
"paragraph2": "__NOT_TRANSLATED__",
41+
"title": "__NOT_TRANSLATED__"
4242
},
43-
"Offer1": {
44-
"Header": "__NOT_TRANSLATED__",
45-
"Price": "__NOT_TRANSLATED__"
43+
"offer1": {
44+
"header": "__NOT_TRANSLATED__",
45+
"price": "__NOT_TRANSLATED__"
4646
},
47-
"Offer2": {
48-
"Header": "__NOT_TRANSLATED__",
49-
"Price": "__NOT_TRANSLATED__"
47+
"offer2": {
48+
"header": "__NOT_TRANSLATED__",
49+
"price": "__NOT_TRANSLATED__"
5050
},
51-
"Offer3": {
52-
"Header": "__NOT_TRANSLATED__",
53-
"Price": "__NOT_TRANSLATED__"
51+
"offer3": {
52+
"header": "__NOT_TRANSLATED__",
53+
"price": "__NOT_TRANSLATED__"
5454
},
55-
"Offer4": {
56-
"Header": "__NOT_TRANSLATED__",
57-
"Price": "__NOT_TRANSLATED__"
55+
"offer4": {
56+
"header": "__NOT_TRANSLATED__",
57+
"price": "__NOT_TRANSLATED__"
5858
},
59-
"Offer5": {
60-
"Header": "__NOT_TRANSLATED__",
61-
"Price": "__NOT_TRANSLATED__"
59+
"offer5": {
60+
"header": "__NOT_TRANSLATED__",
61+
"price": "__NOT_TRANSLATED__"
6262
}
6363
},
6464
"urls": {

public/static/locales/en.json

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"ContactForm": {
3-
"Company": "Company",
4-
"Content": "Content",
5-
"Description": "You will receive a response at the provided email address within 24 hours. We will address all your questions and propose solutions tailored to the specified budget.",
6-
"Email": "E-mail",
7-
"Error": "Please ensure all required fields are filled out correctly before submitting.",
8-
"Name": "Name",
9-
"Phone": "Phone",
10-
"Send": "Send",
11-
"Subject": "Subject",
12-
"Surname": "Surname",
13-
"Title": "Achieve your company’s goals with Vitresoft."
2+
"contactForm": {
3+
"company": "Company",
4+
"content": "Content",
5+
"description": "You will receive a response at the provided email address within 24 hours. We will address all your questions and propose solutions tailored to the specified budget.",
6+
"email": "E-mail",
7+
"error": "Please ensure all required fields are filled out correctly before submitting.",
8+
"name": "Name",
9+
"phone": "Phone",
10+
"send": "Send",
11+
"subject": "Subject",
12+
"surname": "Surname",
13+
"title": "Achieve your company’s goals with Vitresoft."
1414
},
1515
"hero": {
1616
"header": "Today is your| day to grow| in ideas."
@@ -29,36 +29,36 @@
2929
"joinus": "Join us",
3030
"learnmore": "learn more"
3131
},
32-
"Offers": {
33-
"Card1": {
34-
"Paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
35-
"Paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
36-
"Title": "Lorem Ipsum"
32+
"offers": {
33+
"card1": {
34+
"paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
35+
"paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
36+
"title": "Lorem Ipsum"
3737
},
38-
"Card2": {
39-
"Paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
40-
"Paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
41-
"Title": "Lorem Ipsum"
38+
"card2": {
39+
"paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
40+
"paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
41+
"title": "Lorem Ipsum"
4242
},
43-
"Offer1": {
44-
"Header": "Event Planning",
45-
"Price": "from 100 USD"
43+
"offer1": {
44+
"header": "Event Planning",
45+
"price": "from 200 USD"
4646
},
47-
"Offer2": {
48-
"Header": "Event Managment",
49-
"Price": "from 500 USD"
47+
"offer2": {
48+
"header": "Event Planning",
49+
"price": "from 200 USD"
5050
},
51-
"Offer3": {
52-
"Header": "Event Marketing",
53-
"Price": "from 300 USD"
51+
"offer3": {
52+
"header": "Event Planning",
53+
"price": "from 200 USD"
5454
},
55-
"Offer4": {
56-
"Header": "Event Setup",
57-
"Price": "from 800 USD"
55+
"offer4": {
56+
"header": "Event Planning",
57+
"price": "from 200 USD"
5858
},
59-
"Offer5": {
60-
"Header": "Consultation",
61-
"Price": "from 200 USD"
59+
"offer5": {
60+
"header": "Event Planning",
61+
"price": "from 200 USD"
6262
}
6363
},
6464
"urls": {

public/static/locales/pl.json

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"ContactForm": {
3-
"Company": "Firma",
4-
"Content": "Treść",
5-
"Description": "Otrzymasz odpowiedź na podany adres email w przeciągu 24 godzin. Odpowiemy na wszystkie nurtujące pytania i zaproponujemy rozwiązania do przedstawionego budżetu",
6-
"Email": "E-mail",
7-
"Error": "Proszę upewnić się, że wszystkie wymagane pola zostały poprawnie wypełnione przed przesłaniem.",
8-
"Name": "Imię",
9-
"Phone": "Telefon",
10-
"Send": "Wyślij",
11-
"Subject": "Temat",
12-
"Surname": "Nazwisko",
13-
"Title": "Ukończ cele swojej firmy z Vitresoft"
2+
"contactForm": {
3+
"company": "Firma",
4+
"content": "Treść",
5+
"description": "Otrzymasz odpowiedź na podany adres email w przeciągu 24 godzin. Odpowiemy na wszystkie nurtujące pytania i zaproponujemy rozwiązania do przedstawionego budżetu",
6+
"email": "E-mail",
7+
"error": "Proszę upewnić się, że wszystkie wymagane pola zostały poprawnie wypełnione przed przesłaniem.",
8+
"name": "Imię",
9+
"phone": "Telefon",
10+
"send": "Wyślij",
11+
"subject": "Temat",
12+
"surname": "Nazwisko",
13+
"title": "Ukończ cele swojej firmy z Vitresoft"
1414
},
1515
"hero": {
1616
"header": "Dziś jest Twój| dzień, aby urosnąć| w ideach."
@@ -29,36 +29,36 @@
2929
"joinus": "Dołącz do nas",
3030
"learnmore": "dowiedz się"
3131
},
32-
"Offers": {
33-
"Card1": {
34-
"Paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
35-
"Paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
36-
"Title": "Lorem Ipsum"
32+
"offers": {
33+
"card1": {
34+
"paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
35+
"paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
36+
"title": "Lorem Ipsum"
3737
},
38-
"Card2": {
39-
"Paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
40-
"Paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
41-
"Title": "Lorem Ipsum"
38+
"card2": {
39+
"paragraph1": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
40+
"paragraph2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mi nunc, condimentum vitae lectus eget, dapibus luctus ex.",
41+
"title": "Lorem Ipsum"
4242
},
43-
"Offer1": {
44-
"Header": "Planowanie Wydarzenia",
45-
"Price": "od 400 PLN"
43+
"offer1": {
44+
"header": "Planowanie Wydarzenia",
45+
"price": "od 800 PLN"
4646
},
47-
"Offer2": {
48-
"Header": "Zarządzanie Wydarzeniem",
49-
"Price": "od 2000 PLN"
47+
"offer2": {
48+
"header": "Zarządzanie Wydarzeniem",
49+
"price": "od 800 PLN"
5050
},
51-
"Offer3": {
52-
"Header": "Reklama Wydarzenia",
53-
"Price": "od 1200 PLN"
51+
"offer3": {
52+
"header": "Reklama Wydarzenia",
53+
"price": "od 800 PLN"
5454
},
55-
"Offer4": {
56-
"Header": "Ustawienie Wydarzenia",
57-
"Price": "od 3200 PLN"
55+
"offer4": {
56+
"header": "Ustawienie Wydarzenia",
57+
"price": "od 800 PLN"
5858
},
59-
"Offer5": {
60-
"Header": "Konsultacja",
61-
"Price": "od 800 PLN"
59+
"offer5": {
60+
"header": "Konsultacja",
61+
"price": "od 800 PLN"
6262
}
6363
},
6464
"urls": {

src/sections/ContactForm.astro

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const t = useTranslations(lang);
1515

1616
<section class="wrapper" id="formSection">
1717
<div class="infoWrapper">
18-
<!-- t("ContactForm.Title") -->
19-
<!-- t("ContactForm.Description") -->
20-
<h2 class="infoTitle">{t("ContactForm.Title")}</h2>
21-
<p class="infoDesc">{t("ContactForm.Description")}</p>
18+
<!-- t("contactForm.title") -->
19+
<!-- t("contactForm.description") -->
20+
<h2 class="infoTitle">{t("contactForm.title")}</h2>
21+
<p class="infoDesc">{t("contactForm.description")}</p>
2222
<Image class="infoImage" src={starsIconGroupWhite} alt="stars" width={500} />
2323
</div>
2424
<div class="formWrapper">
@@ -29,45 +29,45 @@ const t = useTranslations(lang);
2929
<div class="formSections">
3030
<div class="formTopSection">
3131
<div class="formTopSectionInput">
32-
<!-- t("ContactForm.Name") -->
33-
<Input type="text" placeholder={t("ContactForm.Name")} name="name" />
32+
<!-- t("contactForm.name") -->
33+
<Input type="text" placeholder={t("contactForm.name")} name="name" />
3434
</div>
3535
<div class="formTopSectionInput">
36-
<!-- t("ContactForm.Surname") -->
37-
<Input type="text" placeholder={t("ContactForm.Surname")} name="surname" />
36+
<!-- t("contactForm.surname") -->
37+
<Input type="text" placeholder={t("contactForm.surname")} name="surname" />
3838
</div>
3939
<div class="formTopSectionInput">
40-
<!-- t("ContactForm.Phone") -->
40+
<!-- t("contactForm.phone") -->
4141
<Input
4242
type="tel"
43-
placeholder={t("ContactForm.Phone")}
43+
placeholder={t("contactForm.phone")}
4444
name="phone"
4545
/>
4646
</div>
4747
<div class="formTopSectionInput">
48-
<!-- t("ContactForm.Subject") -->
49-
<Input type="text" placeholder={t("ContactForm.Subject")} name="subject" />
48+
<!-- t("contactForm.subject") -->
49+
<Input type="text" placeholder={t("contactForm.subject")} name="subject" />
5050
</div>
5151
</div>
5252
<div class="formBottomSection">
53-
<!-- t("ContactForm.Email") -->
53+
<!-- t("contactForm.email") -->
5454
<Input
5555
type="email"
56-
placeholder={t("ContactForm.Email")}
56+
placeholder={t("contactForm.email")}
5757
name="email"
5858
/>
59-
<!-- t("ContactForm.Company") -->
60-
<Input type="text" placeholder={t("ContactForm.Company")} name="company" />
61-
<!-- t("ContactForm.Content") -->
62-
<Textarea placeholder={t("ContactForm.Content")} name="content" />
59+
<!-- t("contactForm.company") -->
60+
<Input type="text" placeholder={t("contactForm.company")} name="company" />
61+
<!-- t("contactForm.content") -->
62+
<Textarea placeholder={t("contactForm.content")} name="content" />
6363
</div>
6464
</div>
6565
<div class="errorMessageContainer">
6666
<span id="errorMessage"></span>
6767
</div>
6868
<div class="formButtonContainer">
69-
<!-- t("ContactForm.Send") -->
70-
<Button variant="primary" type="submit" id="formSubmitButton">{t("ContactForm.Send")}</Button>
69+
<!-- t("contactForm.send") -->
70+
<Button variant="primary" type="submit" id="formSubmitButton">{t("contactForm.send")}</Button>
7171
</div>
7272
</form>
7373
</div>
@@ -108,7 +108,7 @@ const t = useTranslations(lang);
108108
const validation = validateContactForm(data);
109109

110110
if(!validation && errorMessageSpan != null){
111-
errorMessageSpan.innerText = t("ContactForm.Error");
111+
errorMessageSpan.innerText = t("contactForm.error");
112112
return;
113113
}
114114

0 commit comments

Comments
 (0)