You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@answer.apache.org by "hgaol (via GitHub)" <gi...@apache.org> on 2026/09/12 08:21:14 UTC

[I] Support AI translation for question and answer drafts [answer]

hgaol opened a new issue, #1610:
URL: https://github.com/apache/answer/issues/1610

   ## Feature request
   
   Add AI-assisted translation for question and answer drafts.
   
   ### Requirements
   
   - Allow users to translate question titles and content before submission.
   - Allow users to translate answer content before submission.
   - Preserve Markdown, code blocks, URLs, HTML, mentions, and placeholders.
   - Use the configured AI provider, model, and site language.
   - Provide an administrator setting to enable or disable translation.
   - Handle provider errors with actionable messages.
   - Keep translation opt-in at the editor level so users can review the generated draft before replacing their content.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org


Re: [I] Support AI translation for question and answer [answer]

Posted by "fenbox (via GitHub)" <gi...@apache.org>.
fenbox commented on issue #1610:
URL: https://github.com/apache/answer/issues/1610#issuecomment-5747439987

   Hi, I have some suggestions regarding the style and interaction:
   
   1. Make the translation a small button placed at the end of the form.
   
   2. Only display it when the input language does not match the target language.
   
   3. After clicking, automatically replace the current form content with the translated text; there is no need for a modal to confirm, as the `<input>` have a built-in undo function.
   
   [design file](https://www.figma.com/design/MeOkbCEQS9jCDRVHcjTRtY/Apache-Answer?node-id=29742-2779&t=QERUEwbNjvZBodfi-1)
   
   <img width="2372" height="1048" alt="Image" src="https://github.com/user-attachments/assets/b1e40772-aa9a-48cf-821a-e764bd5f5292" />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org


Re: [I] Support AI translation for question and answer [answer]

Posted by "hgaol (via GitHub)" <gi...@apache.org>.
hgaol commented on issue #1610:
URL: https://github.com/apache/answer/issues/1610#issuecomment-5748641203

   Hi @fenbox , thanks for the careful review and valuable feedback! Updated the PR to align with your suggestions.
   
    - Added compact, Figma-aligned translation icons to title inputs and editor
      bottom-right corners.
    - Shows “Translate into [language]” as the tooltip and accessible label.
    - Added deterministic client-side language detection using franc-min.
    - Shows the translation icon only when the input confidently differs from the site
      language.
    - Handles short cross-script text and avoids guessing ambiguous same-script text.
    - Ignores Markdown, code, URLs, HTML, mentions, and placeholders during detection.
    - Debounces detection and lazy-loads franc-min.
    - Removed the review modal.
    - Translation now immediately replaces the relevant field while preserving
      undo/edit behavior.
    - Added bottomRightAction to the editor to position the icon correctly.
    - Added six language-detection tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org


Re: [I] Support AI translation for question and answer [answer]

Posted by "ssheryathakur (via GitHub) via issues" <is...@answer.apache.org>.
ssheryathakur commented on issue #1610:
URL: https://github.com/apache/answer/issues/1610#issuecomment-6588841374

   Great news! Thank you for suggesting this feature. AI-assisted translation would be a valuable addition to Apache Answer, especially for multilingual communities. The ability to translate drafts while preserving Markdown, code blocks, URLs, and formatting would significantly improve accessibility and user experience. Looking forward to seeing this feature implemented!
   
   [![Thank You](https://gyanpot.in/wp-content/uploads/2026/11/dance.gif)](https://gyanpot.in/wp-content/uploads/2026/11/dance.gif)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org


Re: [I] Support AI translation for question and answer drafts [answer]

Posted by "Adarsh-Me (via GitHub)" <gi...@apache.org>.
Adarsh-Me commented on issue #1610:
URL: https://github.com/apache/answer/issues/1610#issuecomment-5644864882

   /assign


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org