Skip to content

Commit

Permalink
Update Subscription modal translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ani-kalpachka committed Jun 21, 2024
1 parent 0c171fc commit e0126b6
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 13 deletions.
4 changes: 2 additions & 2 deletions public/locales/bg/validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}` със тази стойност вече съществува в платформата.",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'])),
},
})

Expand Down
7 changes: 6 additions & 1 deletion src/pages/about-project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
])),
},
})

Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'])),
},
})

Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'])),
},
}
}
Expand Down
8 changes: 7 additions & 1 deletion src/pages/campaigns/news/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/faq/[section].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
},
})
Expand Down
2 changes: 1 addition & 1 deletion src/pages/faq/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
})
Expand Down
7 changes: 6 additions & 1 deletion src/pages/finance-report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
])),
},
})

Expand Down
7 changes: 6 additions & 1 deletion src/pages/open-data/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
])),
},
})

Expand Down
7 changes: 6 additions & 1 deletion src/pages/privacy-policy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
])),
},
})

Expand Down
1 change: 1 addition & 0 deletions src/pages/support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => ({
'about',
'about-project',
'validation',
'auth',
])),
},
})
Expand Down
2 changes: 2 additions & 0 deletions src/pages/support_us.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => ({
'common',
'support_us',
'one-time-donation',
'validation',
'auth',
])),
},
})
Expand Down
2 changes: 1 addition & 1 deletion src/pages/terms-of-service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'])),
},
})

Expand Down

0 comments on commit e0126b6

Please sign in to comment.