Scanning twig files
-
Hi!
I am a theme developer, and I ran into an issue with the file scan, specifically regarding twig files.
I have some translations that are not scanned when in the middle of some html, but they are scanned if placed at the beginning of the file.As you will see, the first line is a string scanned.
This same string is also present on line 8, but is not scanned if I remove the first one.Here is the content of the file :
{{ _x("Search anything", 'Search placeholder', 'text-domain') }} <div id="search_form" class="panel" data-url-slug="{{ search.url_slug }}" data-panel-id="search_form" data-component="search_form"> <div class="panel__wrapper search_form__wrapper"> <div class="panel__inner search_form__inner"> <form class="search_form__form" action="{{ SITE_URL }}" method="get"> <button class="panel__close" type="button" data-panel-toggle="search_form" aria-label="{{ _x("Close the search", 'Search', "text-domain") }}">{{ svg('icon-close') }}</button> <div class="search_form__input_wrapper"> <label class="sr_only" for="search_form_input">{{ __("Search", 'text-domain') }}</label> <input class="search_form__input" type="search" id="search_form_input" name="s" placeholder="{{ _x("Search anything", 'Search placeholder', 'text-domain') }}"> <button class="search_form__button" type="submit"> <span class="loader"></span> {{ __("search", 'text-domain') }} {{ svg('icon-search') }} </button> </div> </form> </div> </div> <button class="panel__overlay" aria-label="{{ _x("Close the search", 'Search', "text-domain") }}" data-panel-toggle="search_form"></button> </div>
Do you have any idea what might be the issue here?
Thank you very much for your help.
Have a very nice day.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Scanning twig files’ is closed to new replies.