Add data- attributes to GOOD_STRINGS#28
Open
nimasmi wants to merge 1 commit intoamandasaurus:masterfrom
Open
Conversation
Boolean data attributes (e.g. data-foo) should not be translated, whereas those which take values (data-title="foo") should be.
Owner
|
I haven't touched django in years, so I haven't done anything with this project. I don't have the set up to test this now. So... 🤷
…On Fri, 25 Sep 2020, at 4:08 PM, Nick Smith wrote:
Boolean data attributes (e.g. data-foo) should not be translated,
whereas those which take values (data-title="foo") should be.
You can view, comment on, or merge this pull request online at:
#28
Commit Summary
* Add data- attributes to GOOD_STRINGS
File Changes
* *M* django_template_i18n_lint.py
<https://github.com/rory/django-template-i18n-lint/pull/28/files#diff-a79e3ae1f1f57fd15fd90267bd89e815> (2)
* *M* tests.py
<https://github.com/rory/django-template-i18n-lint/pull/28/files#diff-f4bc68ff01eef7bed2f3a64cad7d37ca> (2)
Patch Links:
* https://github.com/rory/django-template-i18n-lint/pull/28.patch
* https://github.com/rory/django-template-i18n-lint/pull/28.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMC4LPQOU6VMQIXKRQRLSHSP5DANCNFSM4RZS234A>.
|
Author
|
That's okay. The diff here isn't really anything Django-specific. It adds a regular expression to include data attributes like Demo: https://regexr.com/5ctp0 |
jayvdb
approved these changes
Oct 4, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Boolean data attributes (e.g. data-foo) should not be translated,
whereas those which take values (data-title="foo") should be.