In a custom D8 theme, we have some strings in twig using |t filter and in php using $this-t() funtion.

example :

{{'More Headlines'|t}}

These strings are not listed in /admin/config/regional/translate. What's the right way to translate it via the administration interface like it was possible with D7?

1 Answer 1


You just need to first visit the page rendering the string you want to translate while using any other language.

Drupal only adds this string to the database once it has been rendered once, and you will be able to see it in the /admin/config/regional/translate page.

  • let's say your string is displayed on page /headlines (and your default language is english). Go to example.org/fr/headlines and just after you will see the string appear in User Interface Translate (/admin/config/regional/translate)
    – GiDo
    Nov 20, 2015 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.