This plugin for Kirby 4 replaces the default language dropdown with a customized version. It displays the translation state of each language and adds a dropdown for deleting translations.
Left to right: No translations, some translations, dropdown.
Download and copy this repository to /site/plugins/kirby-language-selector
.
composer require junohamburg/kirby-language-selector
git submodule add https://github.com/junohamburg/kirby-language-selector.git site/plugins/kirby-language-selector
Install the plugin in a multi-language Kirby site.
Please note: On small viewports, the default language dropdown is displayed.
site/config/config.php
<?php
return [
'junohamburg.language-selector' => [
'allowDelete' => false, // Hide dropdown for deleting translations, default: true
]
];
The dialog text and tooltips are not translated into every language that the Kirby panel supports. For missing languages, feel free to add a pull request with a new yml
translation file in this folder.
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
https://github.com/Daandelange/k3-translations
https://github.com/doldenroller/k3-translation-status
https://github.com/sietseveenman/kirby3-language-sync
MIT