-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: translate the English terms in URLs to Dutch language #899
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention: Patch coverage is
|
@@ -62,11 +64,15 @@ export const SearchBar: React.FC<SearchBarProps> = ({ | |||
} | |||
}; | |||
|
|||
const searchSegment = t('segments.search', { | |||
defaultValue: 'zoeken', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zou je de URL segment strings willen verzamelen in één file, of één file per locale, en importeren? import { SearchSegment } from 'UrlSegmentNL
;`
Als je voor de URL utility functions kiest, dan moet het misschien net iets anders werken.
@@ -79,7 +85,7 @@ const Home = async ({ params: { locale } }: { params: any }) => { | |||
return { | |||
char: letter, | |||
disabled: !isAvailable, | |||
href: !isAvailable ? undefined : `products/alphabet/${letter.toLocaleLowerCase()}`, | |||
href: !isAvailable ? undefined : `${productsSegment}/${alphabetSegment}/${letter.toLocaleLowerCase()}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat zou je er van denken om een file te hebben met utility functions om URLs te genereren? Uiteindelijk zouden we die kunnen delen tussen pdc-dashboard en pdc-frontend.
Bijvoorbeeld: createProductUrl({ locale: 'en', product: 'klacht' })
.
Eventueel met base URL argument zoals new URL(url, base)
:
createProductUrl({ locale: 'en', product: 'klacht' }, process.env.PDC_FRONTEND_URL)
ac75bab
to
9e80ed2
Compare
9e80ed2
to
c359905
Compare
c359905
to
a36fd97
Compare
No description provided.