A WordPress plugin that adds “lang” and “dir” attributes to Group, Columns, and Cover blocks for improved accessibility.
This plugin provides a way to ensure that any language change in the content of a page is indicated to assistive technologies at the container block level, helping a website comply with WCAG guidelines.
- Node.js (version 16 or higher)
- npm or yarn package manager
- WordPress development environment
-
Clone or download the plugin to your WordPress plugins directory:
cd wp-content/plugins/ git clone [repository-url] lang-attribute-blocks cd lang-attribute-blocks
-
Install dependencies:
npm install
-
Start development mode with hot reloading:
npm run start
-
Create a production build:
npm run build
-
The built files will be generated in the
build/directory:build/index.js- Compiled JavaScriptbuild/index.css- Compiled CSS
npm run start- Start development mode with file watchingnpm run build- Create production buildnpm run make-pot- Update .pot file
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage and handle any security vulnerabilities. Report a security vulnerability.