croox/language-selector
最新稳定版本:v1.0.1
Composer 安装命令:
composer require croox/language-selector
包简介
A Statamic addon for selecting languages in Bard fields
README 文档
README
A Statamic addon that adds language selection functionality to Bard fields.
Features
- Adds a language selector button to Bard fields
- Wraps selected text in a
<span lang="...">tag
Limitations
- Available languages are currently hard-coded
Installation
You can install the package via composer:
composer require croox/language-selector
Usage
- The language selector button will appear in your Bard field toolbar
- Select the text you want to mark with a language
- Click the language button and select the appropriate language
- The text will be wrapped in a
<span>tag with the correctlangattribute
Development
- Clone this repository
- Run
npm install - Run
npm run build
License
MIT License
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-24