Package Exports
- vue-langstyle
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-langstyle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue-langsStyle
an easy way to support multiple fonts for multiple languages in the same page.
installing
npm i vue-langstylestyle function
style(text :string);methods: {
funcName() {
this.text = this.$langStyle.style(this.text)
}
}Now you can specify the class name
this.$langStyle.config({Class: "zed"});then you can style by the class name
.zed {
font-size: 20px;
color: red
} <p v-html="text"></p>Now you can use customLang function
customLang function
customLang({
Regex :string Regular expression for the language or the word,
Class :string The class will be given to the language or word (Optional Default "custom"),
Text :string The article body or the content that will be changed
}) this.text = this.$langStyle.customLang({Regex: /[\u0600-\u06FF]/,Class: "zed", Text: this.text});Tasks List
- Adding support for Arabic
- Adding Class method
- Adding support for Chinese
- Adding support for Latin`s Languages