text
text copied to clipboard
Translation feature pukes out on some markdown elements or multiple paragraphs
Describe the bug Translate feature can't deal with most markup
To Reproduce Steps to reproduce the behavior: But seriously.
- Create a pagragraph of text, then add a
- [ ] stylebullet list, or a table or something more complicated, and another paragraph of text. - Select the 3 pagragraphs, click on '...' and choose translate
- select languages and translate
- Nothing happens
It does depend a bit on what you select, EG emoji's in a table will definitely be fun (...), try this:
| Feature | Other apps | Our app |
|---|---|---|
| AI based task sorting | ❌ | ✅ |
| Collaborative editing | ❌ | ✅ |
| Gamification | ❌ | ✅ |
| Location based reminders | ❌ | ✅ |
Plus a paragraph of text!
| Feature | Other apps | Our app |
|---------|------------|---------|
| AI based task sorting | ❌ | ✅ |
| Collaborative editing | ❌ | ✅ |
| Gamification | ❌ | ✅ |
| Location based reminders | ❌ | ✅ |
Plus a paragraph of text!
Expected behavior You see the translation, ideally WITH markdown. I realize that selecting an entire document with images and their description, tables, warning boxes, check boxes and so on, and getting it translated - that's a step beyond where we are... So I think we should find out how to fail more gracefully 😄
Screenshots If applicable, add screenshots to help explain your problem.
Server details:
- Nextcloud version: e.g. 27.1.0 RC1 on tech-preview
Client details:
- Browser: Firefox, Linux and Firefox/MacOS
I have a juicy JS console log below.
Logs
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
{
"message": "Request failed with status code 400",
"name": "AxiosError",
"stack": "AxiosError: Request failed with status code 400\n at https://tech-preview.nextcloud.com/apps/text/js/text-viewer.js?v=e2b26a83-6149:2:3012758\n at XMLHttpRequest.u (https://tech-preview.nextcloud.com/apps/text/js/text-viewer.js?v=e2b26a83-6149:2:3012903)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json",
"requesttoken": "qXa9MxM7RA7wIyedKwkznhrZHMeWmDXzsfO35GGu2xw=:zCeLdXgJLl2FF0OyYDx71WqoM5H67nSHh7v2iAf7jC0="
},
"method": "post",
"url": "https://tech-preview.nextcloud.com/ocs/v2.php/translation/translate",
"data": "{\"text\":\"Introducing Our Revolutionary App to Help You Manage Your Daily Life Feeling like you're drowning in a sea of tasks and responsibilities? Tired of the daily grind sapping your energy and leaving you feeling defeated? Well, it's time to turn the tide with our incredible new app that's all about making your life easier, more organized, and heck, even more fun! Imagine this app as your trusty sidekick, there to help you conquer your day like a superhero. Whether you're wrangling work projects, balancing family commitments, or navigating the maze of student life, our app is like that wise friend who's got your back. Quick table overview: Feature Other apps Our app AI based task sorting ❌ ✅ Collaborative editing ❌ ✅ Gamification ❌ ✅ Location based reminders ❌ ✅ Now, let's talk style. Our app isn't just a behind-the-scenes wizard; it's a fashion statement. Sleek, modern, and oh-so-pretty, it'll give your phone screen a makeover while keeping your life on track. Check your schedule, set those nifty reminders, and access what you need with a swipe – it's like a digital magic wand. \",\"fromLanguage\":null,\"toLanguage\":\"es\"}"
},
"code": "ERR_BAD_REQUEST",
"status": 400
}