Configuration
Config
Learn how to configure the Craft Loanwords Craft CMS plugin.
Configuration
Create a loanwords.php file under your /config directory with the following options available to you. You can also use multi-environment options to change these per environment.
./config/loanwords.php
<?php
return [
'*' => [
'defaultLang' => 'de-AT',
'caseSensitive' => false,
'cssClass' => 'inline',
]
];
defaultLang: Sets the default language for loanwords, defaults toen.caseSensitive: Makes the replacement process case-sensitive, matching capitalization exactly, defaults tofalsecssClass: Defines a CSS class for styling loanwords, defaults toposition: inlineas style if left blank.
Caution
This File will overwrite the settings from the control panel.
Control Panel
You can also manage configuration settings through the Control Panel by visiting Settings → Loanwords.