You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
nCubed
changed the title
Only translate
Only translate defined locales, skip default locale while still removing all data-t attributes
Sep 22, 2021
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.
The text was updated successfully, but these errors were encountered: