nextcloud / nextcloud/text

Remember last used target language

Open
#5,153 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement papercut
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Remember the last used target language (in local storage?) and set it as default when returning to Translate. If I am working on a document I have to select the target language every single time. This is annoying.

I originally reported this here: https://github.com/nextcloud/text/issues/4219
@datenangebot suggested it to be tracked in the Translate repo, but I didn't follow up. So I'm doing that now :)
EDIT: moved from Translate repo to Text repo.

Steps to reproduce
  1. Open a .md file
  2. Type some text
  3. Open Translate, select a target language
  4. Translate it
  5. Return to editing/writing some text
  6. Open Translate again
Actual behaviour

The target language is empty, I have to select it again.

Expected behaviour

The target language should be set to the language that I used when I opened the Translate modal for the first time.

Metadata
  • Nextcloud 28.0.0.11
  • Firefox 120.0.1
  • Ubuntu 23.10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Translate modal and trace how the selected target language is initialized and cleared when the modal is reopened. Verify the behavior using the listed reproduction steps: after selecting a language and translating a document, reopening Translate should show that language as the target.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.