|
@@ -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",
|
|
|
);
|