-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile][Embed block] Add device's locale to preview content #33858
Conversation
Size Change: 0 B Total Size: 1.04 MB ℹ️ View Unchanged
|
8a58473
to
28fc00c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these changes @fluiddot I tested the behavior in Spanish and French and it worked as expected on both platforms when the Twitter provider was tested. I verified that the translations are also shown on the web as well, as seen below.
I modified the available inline previews while testing to see how Instagram & Vimeo behaved. The text of Instagram's preview was not translated so it seems not all providers support translations. Both Vimeo and Youtube do not display any words in their preview on mobile. On the web, their controls are not translated.
# Conflicts: # packages/react-native-editor/CHANGELOG.md
Yeah, looks like not all providers will have the UI translated. In the case of Instagram, I verified that it's not translated in the web version either. |
* trunk: [RNMobile][Embed block] Add device's locale to preview content (#33858) Update AlignmentMatrixControl docs post merge. (#34662) Chore: Update caniuse package to the latest version (#34685) Chore: Move `react-native-url-polyfill` to dev dependencies (#34687) Site Editor - add basic plugin support (#34460) ESLint Plugin: Use Jest related rules only when the package is installed (#33120) Update `@wordpress/components` package's contributing guidelines (#33960) chore(release): publish Update changelog files [RNMobile] [Embed block] Fix content disappearing on Android when switching light/dark mode (#34207) Scripts: Convert legacy entry point arguments for compatibility with webpack 5 (#34264) Update justication control in `flex` layout (#34651) Block Editor: Rename experimental prop used in `BlockControls` (#34644) Fix social links deprecation (#34639)
gutenberg-mobile
PR: wordpress-mobile/gutenberg-mobile#3788Description
Use the device's locale in the HTML generated for the embed preview.
How has this been tested?
NOTE: For testing these changes, the embed inline preview has to be available.
NOTE: Each embed provider supports different languages so it's recommended to verify how is rendered in the web version.
Screenshots
Using Spanish as device's language:
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).