junohamburg/kirby-language-selector
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.
Please note: If you are using Kirby 4, please install v1.1.9.
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
Credits
junohamburg/kirby-language-selector 适用场景与选型建议
junohamburg/kirby-language-selector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.07k 次下载、GitHub Stars 达 60, 最近一次更新时间为 2023 年 11 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 junohamburg/kirby-language-selector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 junohamburg/kirby-language-selector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 10.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 60
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-15