Skip to content

Only translate defined locales, skip default locale while still removing all data-t attributes #48

@nCubed

Description

@nCubed

Is it possible to only translate the defined locales and skip the base locale, but still strip the data-t attributes in the base locale?

For example, we have an existing static website with the English language and would like to create a Spanish language version. I would like to leave the existing English text and simply add the data-t="some.path" attribute where the language should be substituted for the Spanish version and output to the "es" directory. With the net effect of the original html file is the English text remains, but the data-t="some.path" attribute is stripped.

I've found this is mostly possible by defining only an "es" locale in the locales switch. The Spanish version of the html is created and the original English version is untouched. However, the original English version still retains the data-t attributes (and value), whereas the Spanish version data-t attribute (and value) is stripped as expected.

Hopefully this makes sense.

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