Syntax highlighting and placeholders validation for Twig. Install the add-on to prevent the translators from working with untranslatable code parts.
Note: It's recommended to internationalize your templates and extract texts into resource files. If internationalization is not the case for your project (for example you need to translate email templates), please check the rest of this guide.
Make sure you don't have translatable texts inside your Twig expressions, translators won't be able to edit them.
<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<ul id="navigation">
{% for item in navigation %}
<li><a href="{{ item.href }}">{{ item.caption }}</a></li>
{% endfor %}
</ul>
<h1>My Webpage</h1>
{{ a_variable }}
</body>
</html>
Crowdin is a platform that helps you manage and translate content into different languages. Integrate Crowdin with your repo, CMS, or other systems. Source content is always up to date for your translators, and translated content is returned automatically.
Learn MoreReleased on May 30, 2022
Updated on Feb 9, 2023
Published by Awesome Crowdin
Identifier:twig