-
Notifications
You must be signed in to change notification settings - Fork 133
Import the local pages as GlotPress' projects #1856
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
base: local
Are you sure you want to change the base?
Conversation
Only works for the root blocks, not for the nested.
…d block when we export them to the translated page
Thinking about using Playground for editing WordPress Documentation, one of the possible data flows is importing markdown documentation files from a GitHub repository into Playground, making edits, and then creating a Pull Request directly from Playground. I wonder how we could make the two workflows compatible, so enable translating documentation pages brought over from markdown files from GitHub. We have a two-way markdown<->blocks conversion pipeline at https://github.com/dmsnell/blocky-formats so we can reason about blocks instead of text paragraphs. Would that suffice? Or would we have store some additional structured data in the repo to cross-reference paragraphs/blocks from different markdown files? |
@amieiro and I discussed that the current implementation on writing Possible solution: add the metadata to the block attribute json (for example as fake css class names so that they remain after editing the page gp-original-123) and convert it to a element upon output by getting the data from the database. A positive aspect of this is that we can do this transformation only for people with permission (= logged in users). |
Would the meta attribute work? Or storing it as a block binding? |
Problem
The WordPress.org projects needs to be able to translate the documentation from English to another languages. We have had a few meetings (WCEU 2023, WCEU 2024) and we want to test GlotPress as the translation engine.
Solution
This PR is a first step, doing these steps:
Screenshots or screencast
Local GlotPress
Original page
Translation page in GlotPress
Translated page