JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q24905F
  • License ISC

an easy way to support multiple fonts for multiple languages in the same page.

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-langstyle

style function

methods: {
  funcName() {
    this.text = this.$langStyle.style(this.text)
  }
}

You can style it by using css func :lang(ar)

:lang(ar){
  font-size: 20px;
  color: red
}

Now you can specify the method (Attr || Class) in the config default is Attr

this.$langStyle.config({method: "Class",Class: "zed"});

then you can style by the class name instead of :lang()

.zed {
  font-size: 20px;
  color: red
}
  • Adding support for Arabic
  • Adding Class method
  • Adding support for Chinese
  • Adding support for Latin`s Languages