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
Translation keys that end with _html would be nice if they automatically were marked safe so we can avoid using == or .html_safe in views. This is something that happens in Rails and I think it would be nice to have this feature. Going to make a PR for this when I have some time, but wanted to document it here and see if there are any objections.
The text was updated successfully, but these errors were encountered:
jclusso
changed the title
feat: _html translation keys
feat: _html translation key automatic safety support
Feb 9, 2024
Also wanted to further add that this is also recognized in other projects like i18n-tasks since it will mess up translating keys that are HTML if they don't have _html on them.
Summary
Translation keys that end with
_html
would be nice if they automatically were marked safe so we can avoid using==
or.html_safe
in views. This is something that happens in Rails and I think it would be nice to have this feature. Going to make a PR for this when I have some time, but wanted to document it here and see if there are any objections.The text was updated successfully, but these errors were encountered: