@plonegovbr/volto-vlibras

0.3.0 • Public • Published
logo

VLibras support for Plone

This addon integrates VLibras, a service for automatic translation of web content into Lingua Brasileira de Sinais, in a Plone project using Volto user interface.

npm Code analysis checks Unit tests

GitHub contributors GitHub Repo stars

Screenshots

Opening VLibras Widget

VLibras: Abertura

Using the Widget

VLibras: Leitura

Install

New Volto Project

Create a Volto project

npm install -g yo @plone/generator-volto
yo @plone/volto my-volto-project --addon @plonegovbr/volto-vlibras
cd my-volto-project

Existing Volto Project

If you already have a Volto project, just update package.json:

"addons": [
    "@plonegovbr/volto-vlibras"
],

"dependencies": {
    "@plonegovbr/volto-vlibras": "*"
}

Configuration

To inject the component in the project add the appextras configuration in the config.js file.

A suggested way is to use appExtras from settings object (docs):

import '@plone/volto/config';
import Libras from '@plonegovbr/volto-vlibras/components/Libras';

export default function applyConfig(config) {

  config.settings = {
    ...config.settings,
    appExtras: [
      ...defaultSettings.appExtras,
      {
        match: '',
        component: Libras,
      },
    ],
  }

  return config;
  
};

Test it

After adding the add-on, and its configuration, you need to install it and then start the project:

yarn install
yarn start

Then go to http://localhost:3000/

Contribute

Credits

The development of this add on was sponsored by the Brazilian Plone Community

PloneGov-Br

License

The project is licensed under MIT.

Install

npm i @plonegovbr/volto-vlibras

DownloadsWeekly Downloads

10

Version

0.3.0

License

MIT

Unpacked Size

1.5 MB

Total Files

31

Last publish

Collaborators

  • ericof