lagrange icon indicating copy to clipboard operation
lagrange copied to clipboard

Automatically select translation-from language to the page's lang parameter

Open michaelnordmeyer opened this issue 2 years ago • 1 comments

Currently the translation dialog will have the first language selected when the dialog is displayed, or the last selected one.

I'd like to have it to automatically select the language the response has attached to it in the lang parameter, if there is one and if it's a translatable language.

michaelnordmeyer avatar Feb 22 '23 19:02 michaelnordmeyer

v1.15.5 added "Auto-detect" as the default source language. This is LibreTranslate's autodetection and does not check the MIME lang.

There is still some value in checking lang because LibreTranslate may not always choose the right language. However, in the wild, lang seems relatively rare so given the new autodetection working in most cases, implementing this is pretty low on the priority list.

skyjake avatar Mar 21 '23 05:03 skyjake