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

1.1.9 2024-02-12 09:19 UTC

This package is auto-updated.

Last update: 2024-11-19 14:11:07 UTC


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.

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