-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support translating the og:image on Rosetta sites #631
Comments
Asking translators to learn about Figma and image generation may be a bit tough. |
CopyDoc Text Kit Figma plugin (replacing text using Google Spreadsheet) looked promising but after a quick test I found it was too cumbersome for our purposes (it's a neat plugin for other uses though!). How about exporting blank background images and letting locale teams edit text on Google Sheets or Canva? |
I shared a Figma file on the design channel a few days ago that intends to be published on the WordPress's Figma Community profile and used by anyone who wants to translate the OG images. I pinged some contributors asking for translations of the images included in the file to see whether the design process works similarly to how it is done in Canva. If all goes well, the Japanese version will be included in the file and other future translations might be too through the file version updates. |
I made an attempt to convert English OG images to Japanese. The conversion process mainly involves the following tasks
As for issues, auto formatting is necessary because the design breaks down when the number of characters increases or decreases.
In this order, I thought it would be a good idea to start with the languages for which formats can be prepared. Here is the Japanese version of Figma that we tried. |
Currently, the Rosetta sites use the same
og:image
as the main English site, creating a dual-language embed when shared:In WordPress/wporg-theme-directory#117 we discussed allowing translators to provide an image in their own language.
We can make the image translatable by wrapping it in a translation function. We'll want to add some catch that only images hosted by wordpress.org will work (just in case). Translators will need upload access to their home rosetta site (XX.wordpress.org), and can upload the created image there. Then, the translation will be the new image URL.
To do
Note: I've added this issue to
wporg-mu-plugins
, but we might need to make the change in each site instead.The text was updated successfully, but these errors were encountered: