Skip to content

Match html lang attribute to translation #139

@mattgarrish

Description

@mattgarrish

Summary

Translated html pages always get the language of the source.

Steps to reproduce

Translate any html page with a lang attribute on the root html element.

What is the current bug behavior?

The lang attribute value in the translated document has the same language code as the source. Update the translation and a corrected lang attribute reverts to the source language code.

What is the expected correct behavior?

Match the language code to the translation.

Possible fixes

Automatic updating of the lang attribute to match the translation language would be nice, or at least a way to set the attribute during translation of documents and have that remembered across updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions