Skip to content

valaxyjs/css-i18n

Repository files navigation

CSS i18n

Preview: i18n in One Page by css-i18n

css-i18n | NPM

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'