generated from acdh-oeaw/template-app-next
-
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
link translated content #5
Comments
the current i18n setup assumes that all content exists in all supported languages. as long as the slugs match,
to decide if this needs to change, we should clarify
|
@vronk can you please add the relevant info to the specification document? thank you. |
answers are (i) yes, and (ii) yes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@stefanprobst, how should the relation between entries be handled, where on entry represents the translation of another entry?
i would introduce a relationship field like "translationOf" to let the user select the original entry.
But how to proceed from there? should we introduce some logic in sitemap.ts (i.e. generate a mapping between entry slugs based on the new field, which could also give as the benefit of being able to create a localized sitemap https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generate-a-localized-sitemap) and reuse this logic in the localswitcher component? or would we use some Provider?
The text was updated successfully, but these errors were encountered: