junohamburg / kirby-language-selector
Kirby Language Selector
Installs: 3 409
Dependents: 1
Suggesters: 0
Security: 0
Stars: 50
Watchers: 4
Forks: 4
Open Issues: 3
Language:JavaScript
Type:kirby-plugin
Requires
README
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.
UI states
Left to right: No translations, some translations, dropdown.
Installation
Download
Download and copy this repository to /site/plugins/kirby-language-selector
.
Composer
composer require junohamburg/kirby-language-selector
Git submodule
git submodule add https://github.com/junohamburg/kirby-language-selector.git site/plugins/kirby-language-selector
Setup
Install the plugin in a multi-language Kirby site.
Please note: On small viewports, the default language dropdown is displayed.
Available options
site/config/config.php
<?php return [ 'junohamburg.language-selector' => [ 'allowDelete' => false, // Hide dropdown for deleting translations, default: true ] ];
Contributions
Plugin Translations
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.
Disclaimer
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.
Similar plugins
https://github.com/Daandelange/k3-translations
https://github.com/doldenroller/k3-translation-status
https://github.com/sietseveenman/kirby3-language-sync
License
MIT