css-i18n
v0.0.5
Published
Preview: [i18n in One Page by `css-i18n`](https://valaxy.site/guide/i18n)
Downloads
686
Maintainers
Readme
CSS i18n
Preview: i18n in One Page by css-i18n
CSS I18n Plugin for Markdown-It.
Usage
Install
npm i markdown-it-container css-i18n
# pnpm add markdown-it-container css-i18n
Use as markdown-it plugin
import { cssI18nContainer } from 'css-i18n'
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
md.use(cssI18nContainer, {
languages: ['zh-CN', 'en']
})
CSS
// in client
import 'css-i18n/dist/index.css'
// source scss
// import 'css-i18n/src/index.scss'