When you save changes, if you check "Localize Text", the template content will be saved as a pattern and translation functions (esc_html_e()) will be applied to some of the text:

The text that gets replaced is determined by a hard-coded list of regular expressions and blocks.
As a result, there have been reported issues with anything that doesn't fit these not being localized:
Maintaining this hard-coded data is impractical.
Perhaps a more generic approach is needed, although this has probably been considered in the past.
When you save changes, if you check "Localize Text", the template content will be saved as a pattern and translation functions (
esc_html_e()) will be applied to some of the text:The text that gets replaced is determined by a hard-coded list of regular expressions and blocks.
As a result, there have been reported issues with anything that doesn't fit these not being localized:
Maintaining this hard-coded data is impractical.
Perhaps a more generic approach is needed, although this has probably been considered in the past.