locale-translation-last-check.html.twig
Theme override for the last time we checked for update data.
Available variables:
- last_checked: Whether or not locale updates have been checked before.
- time: The formatted time ago when the site last checked for available updates.
- link: A link to manually check available updates.
See also
\Drupal\locale\Hook\LocaleThemeHooks::preprocessLocaleTranslationLastCheck()
1 theme call to locale-translation-last-check.html.twig
- TranslationStatusForm::buildForm in core/modules/ locale/ src/ Form/ TranslationStatusForm.php 
- Form builder for displaying the current translation status.
File
- 
              core/themes/ stable9/ templates/ admin/ locale-translation-last-check.html.twig 
View source
- {#
- /**
-  * @file
-  * Theme override for the last time we checked for update data.
-  *
-  * Available variables:
-  * - last_checked: Whether or not locale updates have been checked before.
-  * - time: The formatted time ago when the site last checked for available
-  *   updates.
-  * - link: A link to manually check available updates.
-  *
-  * @see \Drupal\locale\Hook\LocaleThemeHooks::preprocessLocaleTranslationLastCheck()
-  */
- #}
- <div class="locale checked">
-   <p>
-   {% if last_checked %}
-     {% trans %} Last checked: {{ time }} ago {% endtrans %}
-   {% else %}
-     {{ 'Last checked: never'|t }}
-   {% endif %}
-   <span class="check-manually">({{ link }})</span></p>
- </div>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
