Get Started
Usage
Learn how to use the Craft Loanwords Craft CMS plugin.
Define Loanwords
Once you've installed the Loanwords plugin, you'll gain access to a dedicated section in Craft CMS for managing your loanwords.
When you click on New Loanword
you add new words. After saving, you can use the a11yTextReplacer()
Twig extension in your templates.
Usage in Frontent
After saving, you can use the a11yTextReplacer()
Twig extension in your templates. This automatically replaces loanwords in your content with the correct <span lang="xx">
tags.
example.twig
{{ a11yTextReplacer(entry.richText) | raw }}
This extension takes an string as an argument.