Remember last used target language
Nobody has claimed this yet.
- 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
- Open a .md file
- Type some text
- Open Translate, select a target language
- Translate it
- Return to editing/writing some text
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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