diff --git a/public/locales/bg/validation.json b/public/locales/bg/validation.json index b510072c6..3ad7b33f3 100644 --- a/public/locales/bg/validation.json +++ b/public/locales/bg/validation.json @@ -13,11 +13,11 @@ "terms-of-use": "Моля, приемете oбщите условия", "terms-of-service": "Моля, приемете политиката за защита на личните данни", "agree-with": "Съгласявам се с", - "agree-with-newsletter": "Съгласявам се да получавам известия", + "agree-with-newsletter": "Съгласявам се да получавам известия.", "agree-with-newsletter-campaign": "Съгласявам се да получавам новини за тази кампания и известия от Подкрепи.бг *", "informed-agree-with": "Запознат съм и се съгласявам с", "terms-and-conditions": "общите условия", - "gdpr": "политиката за защита на личните данни", + "gdpr": "политиката за защита на личните данни.", "newsletter": "Моля дайте своето съгласие", "legal-entity": "Юридическо лице", "unique-field-violation": "Полето `{1}` със тази стойност вече съществува в платформата.", diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 083d7b570..9013b615e 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -5,7 +5,7 @@ import NotFoundPage from 'components/common/errors/NotFoundPage/NotFoundPage' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'errors'])), + ...(await serverSideTranslations(locale ?? 'bg', ['common', 'errors', 'validation', 'auth'])), }, }) diff --git a/src/pages/about-project.tsx b/src/pages/about-project.tsx index 55bbbcf72..de2cdbf06 100644 --- a/src/pages/about-project.tsx +++ b/src/pages/about-project.tsx @@ -4,7 +4,12 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'about-project'])), + ...(await serverSideTranslations(locale ?? 'bg', [ + 'common', + 'about-project', + 'validation', + 'auth', + ])), }, }) diff --git a/src/pages/about.tsx b/src/pages/about.tsx index 0b1352261..86bad12a6 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -5,7 +5,7 @@ import AboutPage from 'components/client/about/AboutPage' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'about'])), + ...(await serverSideTranslations(locale ?? 'bg', ['common', 'about', 'validation', 'auth'])), }, }) diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index 891ed7279..4868bdd55 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -27,7 +27,7 @@ export const getServerSideProps: GetServerSideProps = async ({ query, locale }) props: { posts: [], pagination: {}, - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'blog'])), + ...(await serverSideTranslations(locale ?? 'bg', ['common', 'blog', 'validation', 'auth'])), }, } } diff --git a/src/pages/campaigns/news/index.tsx b/src/pages/campaigns/news/index.tsx index 9da5b7346..4c78e801a 100644 --- a/src/pages/campaigns/news/index.tsx +++ b/src/pages/campaigns/news/index.tsx @@ -17,7 +17,13 @@ export const getServerSideProps: GetServerSideProps = async ({ query, locale }) ) return { props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'breadcrumb', 'news'])), + ...(await serverSideTranslations(locale ?? 'bg', [ + 'common', + 'breadcrumb', + 'news', + 'validation', + 'auth', + ])), page: page, dehydratedState: dehydrate(client), }, diff --git a/src/pages/faq/[section].tsx b/src/pages/faq/[section].tsx index ca0c91d74..6df0780e8 100644 --- a/src/pages/faq/[section].tsx +++ b/src/pages/faq/[section].tsx @@ -5,7 +5,7 @@ import { FaqCategory } from 'components/client/faq/contents/faq-categories.enum' export const getStaticProps: GetStaticProps = async ({ locale, params }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'faq'])), + ...(await serverSideTranslations(locale ?? 'bg', ['common', 'faq', 'validation', 'auth'])), section: `${params?.section ?? FaqCategory.Common}`, }, }) diff --git a/src/pages/faq/index.tsx b/src/pages/faq/index.tsx index 84fd06834..768456fad 100644 --- a/src/pages/faq/index.tsx +++ b/src/pages/faq/index.tsx @@ -5,7 +5,7 @@ import FaqPage from '../../components/client/faq/FaqPage' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'faq'])), + ...(await serverSideTranslations(locale ?? 'bg', ['common', 'faq', 'validation', 'auth'])), section: FaqCategory.Common, }, }) diff --git a/src/pages/finance-report.tsx b/src/pages/finance-report.tsx index e829eb10b..37fb698b1 100644 --- a/src/pages/finance-report.tsx +++ b/src/pages/finance-report.tsx @@ -4,7 +4,12 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'about-project'])), + ...(await serverSideTranslations(locale ?? 'bg', [ + 'common', + 'about-project', + 'validation', + 'auth', + ])), }, }) diff --git a/src/pages/open-data/index.tsx b/src/pages/open-data/index.tsx index 05f69c071..93c3752f5 100644 --- a/src/pages/open-data/index.tsx +++ b/src/pages/open-data/index.tsx @@ -5,7 +5,12 @@ import OpenDataPage from '../../components/client/open-data/OpenDataPage' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'open-data'])), + ...(await serverSideTranslations(locale ?? 'bg', [ + 'common', + 'open-data', + 'validation', + 'auth', + ])), }, }) diff --git a/src/pages/privacy-policy.tsx b/src/pages/privacy-policy.tsx index 9a45cba0c..1596a0830 100644 --- a/src/pages/privacy-policy.tsx +++ b/src/pages/privacy-policy.tsx @@ -4,7 +4,12 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'privacy-policy'])), + ...(await serverSideTranslations(locale ?? 'bg', [ + 'common', + 'privacy-policy', + 'validation', + 'auth', + ])), }, }) diff --git a/src/pages/support.tsx b/src/pages/support.tsx index 981df9fc9..f9b4ea00f 100644 --- a/src/pages/support.tsx +++ b/src/pages/support.tsx @@ -11,6 +11,7 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => ({ 'about', 'about-project', 'validation', + 'auth', ])), }, }) diff --git a/src/pages/support_us.tsx b/src/pages/support_us.tsx index eaec24f59..49b3694a8 100644 --- a/src/pages/support_us.tsx +++ b/src/pages/support_us.tsx @@ -9,6 +9,8 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => ({ 'common', 'support_us', 'one-time-donation', + 'validation', + 'auth', ])), }, }) diff --git a/src/pages/terms-of-service.tsx b/src/pages/terms-of-service.tsx index 4e3659a58..51d52af05 100644 --- a/src/pages/terms-of-service.tsx +++ b/src/pages/terms-of-service.tsx @@ -4,7 +4,7 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations' export const getStaticProps: GetStaticProps = async ({ locale }) => ({ props: { - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'auth'])), + ...(await serverSideTranslations(locale ?? 'bg', ['common', 'auth', 'validation'])), }, })