Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.2 KB

Internationalization.md

File metadata and controls

50 lines (37 loc) · 1.2 KB

internationalization

::: warning Version 1.4.0 began to support internationalization :::

Introduction

v-md-editor uses Chinese as the language by default. If you need to use other languages, you can refer to the following scheme.

Switch languages

You can switch the currently used language through the use method.

import enUS from '@kangc/v-md-editor/lib/lang/en-US';

VueMarkdownEditor.lang.use('en-US', enUS);

Modify default configs

The copy method can be used to modify and expand the copy.

VueMarkdownEditor.lang.add({
  'zh-CN': {
    h1: {
      toolbar: 'title 1',
    },
  },
});

Config files

Language Filename
Chinese zh-CN
Traditional Chinese (TW) zh-TW
English en-US
German de-DE
Korean ko-KR
Spanish es-ES
Polish pl-PL
French fr-FR
Russian ru-RU
Brazilian Portuguese pt-BR

View all language configs Here.