If your subscribers speak different languages, you can set up the code manually and choose as many languages as you want. You just need a little experience in coding, nothing more😉
By default, the content locker code looks like:
And here is the example of the code with Russian and Turkish languages added:
This is the code snippet to copy from:
<script>
const overlayTranslations = {
"tr":{"title":"Dikkat!","description":"Bildirimlere abone olmak ve bu web sitesiyle çalışmaya devam etmek için \"Allow\" e tıklayın.","buttonText":"Buraya tıklayın"},
"ru":{"title":"Внимание!","description":"Нажмите \"Allow\" чтобы подписаться и продолжить просмотр сайта","buttonText":"Нажми!"},
"en":{"title":"Attention!","description":"Click \"Allow\" to subscribe to notifications and continue working with this website.","buttonText":"Click here"}
};
const overlay = {"delay":0,"overlayStyle":{"background":"rgba(0,0,0, 0.6)"},"buttonText":"Click here","buttonStyle":{"background":"#dce775","color":"#555555"},"title":"Attention!","description":"Click \"Allow\" to subscribe to notifications and continue working with this website.",...(overlayTranslations[navigator.language.slice(0, 2).toLowerCase()]||Object.values(overlayTranslations)[0])};
const s = document.createElement('script');
s.src='//cheksoam.com/pfe/current/tag.min.js?z=XXXXXXX';
s.onload = (sdk) => {
sdk.updateOptions({overlay, overlayTranslations})
sdk.onPermissionDefault(() => {});
sdk.onPermissionAllowed(() => {});
sdk.onPermissionDenied(() => {});
sdk.onAlreadySubscribed(() => {});
sdk.onNotificationUnsupported(() => {});
}
document.head.appendChild(s);
</script>
Here is the link to the language codes that will be useful for you:
https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes