A Statamic addon that adds language selection functionality to Bard fields.
- Adds a language selector button to Bard fields
- Wraps selected text in a
<span lang="...">tag
- Available languages are currently hard-coded
You can install the package via composer:
composer require croox/language-selector- 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
- Clone this repository
- Run
npm install - Run
npm run build
MIT License