Skip to content

Language selector with translation state and dropdown for deleting translations

License

Notifications You must be signed in to change notification settings

junohamburg/kirby-language-selector

Repository files navigation

Kirby Language Selector

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.

Language Selector in Kirby panel

UI states

Language Selector 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

Credits

About

Language selector with translation state and dropdown for deleting translations

Resources

License

Stars

Watchers

Forks

Packages

No packages published