-
Notifications
You must be signed in to change notification settings - Fork 800
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
Solve using DataViews
in Jetpack products
#39907
Comments
Seems like we need to:
|
It's not quite the same problem, but there are issues with people using DataViews and ending up with a conflicting version of There is a an approach to try and fix this WordPress/gutenberg#66825 |
That's helpful since we'd need a solution for the same problem too, in addition to the workaround for our i18n check. If they get that merged, ping me and I'll look at setting things up in the monorepo to extract it and use that to make a polyfill. Someone else would still need to deal with copying translations around if we want to worry about that part though. (If no one does, it'll just mean that any relevant strings get re-translated in every plugin). |
cc @Automattic/i18n in case you could help here. Perhaps we can pull the strings from .org instead of running them through translators? |
Is the problem extracting the strings, getting the translations or bundling them together with the plugin? |
Jetpack and most other plugins in the Jetpack monorepo are translated via translate.wordpress.org, and get language packs downloaded from there by WordPress Core's normal mechanism. Exceptions include wpcomsh and jetpack-mu-wpcom-plugin; see pxLjZ-9e9-p2 for some discussion about those. For the plugins on translate.wordpress.org I expect GlotPress will extract the strings from our bundles in the normal manner. The concern is that each plugin will have its own copy of the DataViews strings, making duplicate work for translators. |
We have implemented syncing of Jetpack core translations into stand-alone plugins last year in pxLjZ-7QV-p2, so that should work for reusing the DataViews translations as well. |
It simpy seems that we should probably forget about using Dataviews until it becomes stable. |
cc @nateweller, @dkmyta, @bhoop |
@manzoorwanijk, does the above solve all the i18n issues, or are there still some outstanding ones? |
I think if we solve the i18n issue, we should be good. |
Warning folks ⚠ I just now tried to use |
That means, we should wait for WordPress/gutenberg#66825 to be merged and released before we can use dataviews. |
Here is the PR You can test it with WP 6.7.1 to see the crash after following the steps given there. |
As we've been discussing in Slack. Let's see if we can gate whatever we develop to requiring Gutenberg and eventually a future release of WP. We run Gutenberg on WPCOM, can release things there and we can let Jetpack site owners know that they can opt in by running Gutenberg. |
Since that PR from Riad got merged. I think the next step is to use its API and sort out the translations and we are good. |
Looks like it just missed getting in the 4.9.0 version of the package, so first we'll need to wait for the next release. |
We have another blocker for Dataviews |
I took a look at making an
A downside to this is that our OTOH, it's possible that this is overkill and including |
https://piszek.com/2024/12/22/wordpress-data-views-basic-setup/ kudos @artpi (Internal Slack ref p1734885698559379-slack-C45SNKV4Z ) |
We have multiple plugins using or will be using the
DataViews
: Social, Forms, Protect, Newsletters.@manzoorwanijk noted:
@anomiex noted:
Above is reference to adding below webpack config:
The text was updated successfully, but these errors were encountered: