rtl
This plugin will set direction to rtl on configured locales.
Usage
npm i -D @vuepress/plugin-rtl@next
import { rtlPlugin } from '@vuepress/plugin-rtl'
export default {
plugins: [
rtlPlugin({
// options
locales: ['/ar/'],
}),
],
}
Options
locales
- Type:
string[]
- Default:
['/']
- Details:
Locale path to enable rtl.
selector
Type:
SelectorOptions
interface SelectorOptions { [cssSelector: string]: { [attr: string]: string } }
Default:
{ 'html': { dir: 'rtl' } }
Details:
Selector to enable rtl.
The default settings mean that the
dir
attribute of thehtml
element will be set tortl
in rtl locales.