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.
Is it possible to only translate the defined
locales
and skip the baselocale
, but still strip thedata-t
attributes in the baselocale
?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 thedata-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 versiondata-t
attribute (and value) is stripped as expected.Hopefully this makes sense.