pnp/sp-dev-fx-extensions

react-application-machine-translations -

Opened this issue · 2 comments

Sample

react-application-machine-translations

Author(s)

@mromiszewski @agtenr

What happened?

The extension is no longer working when the page is in edit mode.
It works we the page is in display mode.

I am assuming that it cannot pickup the the text controls.
Using the developer tool , I can see that the request is text is empty as shown below

[
{
"detectedLanguage": {
"language": "en",
"score": 0.0
},
"translations": [
{
"text": "",
"to": "de"
}
]
}
]

Steps to reproduce

  1. Install the sppkg and config the translation service
  2. Create a page and its equivalent translation
  3. edit the page, Select the target language from the extension dropdown ==> nothing happens
  4. Open the page in display mode Select the target language from the extension dropdown ==> Page is translated

Expected behavior

I am expecting the the translator works in the edit mode as well as the display mode

Target SharePoint environment

SharePoint Online

Developer environment

None

Browsers

  • Internet Explorer
  • Microsoft Edge
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Node.js version

v14

Additional environment details

No response

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@agtenr @mromiszewski
Were you able to reproduce the issue ?