Easy management for translations of the FastAPI project documentation.
✨ Inspired by the this pull request from @lucasbalieiro.
This is a very specific package, intended for contributors of FastAPI translations.
If you don't work with us, feel free to look around, but I don't think you'll be able to use it anywhere else
Install using pip install -U fastapi-translations
.
After installing fastapi-translations, you'll be able to use it anywhere via the fastapi_translations
command.
You can see all options with fastapi_translations --help
:
A basic usage is: fastapi_translations -l pt -c
.
It will scan all english docs in FastAPI project, check which documents have translations into the language informed, and which documents, despite having a translation, are out of date.
You'll need to wait a little bit while it is analyzing all docs:
And when it is done, you'll see a brief summary:
And a csv
file will be saved: fastapi-translations-lang-{chosen-language}.csv
with all files, dates, etc. 🤗