浏览代码

:sparkles: https://github.com/Vanessa219/vditor/pull/1359

Vanessa 2 年之前
父节点
当前提交
37eb838ba7
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/index.ts

+ 1 - 0
CHANGELOG.md

@@ -107,6 +107,7 @@
 
 ### v3.9.1 / 2023-03
 
+* [新增瑞士语 ](https://github.com/Vanessa219/vditor/pull/1359) `引入特性`
 * [代码块下一行的标题前输入中文时内容会跑到代码块里面](https://github.com/Vanessa219/vditor/issues/1356) `修复缺陷`
 * [连续插入多个列表,控制台报错](https://github.com/Vanessa219/vditor/issues/1343) `修复缺陷`
 * [IR 模式选择内容设置为代码块时异常](https://github.com/Vanessa219/vditor/issues/1354) `修复缺陷`

+ 1 - 1
src/index.ts

@@ -68,7 +68,7 @@ class Vditor extends VditorMethod {
 
         // 支持自定义国际化
         if (!mergedOptions.i18n) {
-            if (!["en_US", "ja_JP", "ko_KR", "ru_RU", "zh_CN", "zh_TW"].includes(mergedOptions.lang)) {
+            if (!["en_US", "ja_JP", "ko_KR", "ru_RU", "sv_SE", "zh_CN", "zh_TW"].includes(mergedOptions.lang)) {
                 throw new Error(
                     "options.lang error, see https://ld246.com/article/1549638745630#options",
                 );