On wikitech:Developer Portal, document the custom translation plugin used in the Dev Portal.
Notes:
In T297168#7555248, @bd808 wrote:My initial design for this is plugin is that it should do something like:
- configure theme languages based on po files found on disk
- create a temp directory outside of docs_dir for generated files
- add navigation strings to the English translation catalog
- generate .md files for all (Page, language) pairs where language != English
- let mkdocs find all the generated pages
- if md target language is English, add messages to English translation catalog
- if md target language is not English, translate md using po
These steps will be scattered across multiple mkdocs callbacks so that each happens in a place where other plugins and mkdocs built-ins can find the generated content and config when needed.