Repository navigation
Conversation
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thanks for trying, but as explained here:
we explicitly designed this to be retro-compatible and not to use the parent items to generate the keys. We considered a solution like this, and it would be very annoying if changing the label of one parent category could inadvertently invalidate all the translation keys of all the items underneath, also impacting all i18n users that do not even have key conflicts in the first place. For this reason, I still believe I made the right choice, and am closing, but still open to discussing the design decision and see how to make your use case easier tp achieve from a different angle. |
Pre-flight checklist
Motivation
In #11228 the
keyadded as solution of #10913.I want to improve autogenerate key for translations categories and docs without
key.And also this code is faster, it does only 1 recursion pass for all sidebar instead of 4 before and does not create additional arrays.
Test Plan
Previos key for categories and docs was
category.labelanddoc.labelwithoutkeydefinition. I think we can improve solution for sites like this:And key for
Getting Startedfor example will beTopic A.Getting StartedandTopic B.Getting Started.Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs