junohamburg/kirby-language-selector 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

junohamburg/kirby-language-selector

最新稳定版本:2.0.4

Composer 安装命令:

composer require junohamburg/kirby-language-selector

包简介

Kirby Language Selector

README 文档

README

This plugin for Kirby 5 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

Please note: If you are using Kirby 4, please install v1.1.9.

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

统计信息

  • 总下载量: 7.36k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 58
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 58
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-15