@waline/client 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -355,8 +355,16 @@ interface WalineCommentCountOptions {
355
355
  * @default window.location.pathname
356
356
  */
357
357
  path?: string;
358
+ /**
359
+ * 错误提示消息所使用的语言
360
+ *
361
+ * Language of error message
362
+ *
363
+ * @default 'zh-CN'
364
+ */
365
+ lang?: string;
358
366
  }
359
- declare const commentCount: ({ serverURL, path, selector, }: WalineCommentCountOptions) => WalineAbort;
367
+ declare const commentCount: ({ serverURL, path, selector, lang, }: WalineCommentCountOptions) => WalineAbort;
360
368
 
361
369
  interface WalineInstance {
362
370
  /**
@@ -419,8 +427,16 @@ interface WalinePageviewCountOptions {
419
427
  * @default true
420
428
  */
421
429
  update?: boolean;
430
+ /**
431
+ * 错误提示消息所使用的语言
432
+ *
433
+ * Language of error message
434
+ *
435
+ * @default 'zh-CN'
436
+ */
437
+ lang?: string;
422
438
  }
423
- declare const pageviewCount: ({ serverURL, path, selector, update, }: WalinePageviewCountOptions) => WalineAbort;
439
+ declare const pageviewCount: ({ serverURL, path, selector, update, lang, }: WalinePageviewCountOptions) => WalineAbort;
424
440
 
425
441
  declare const version: string;
426
442
 
@@ -443,6 +459,14 @@ interface WalineRecentCommentsOptions {
443
459
  * Element to be mounted
444
460
  */
445
461
  el?: string | HTMLElement;
462
+ /**
463
+ * 错误提示消息所使用的语言
464
+ *
465
+ * Language of error message
466
+ *
467
+ * @default 'zh-CN'
468
+ */
469
+ lang?: string;
446
470
  }
447
471
  interface WalineRecentCommentsResult {
448
472
  /**
@@ -458,6 +482,6 @@ interface WalineRecentCommentsResult {
458
482
  */
459
483
  destroy: () => void;
460
484
  }
461
- declare const RecentComments: ({ el, serverURL, count, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
485
+ declare const RecentComments: ({ el, serverURL, count, lang, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
462
486
 
463
487
  export { Locales, RecentComments, WalineAbort, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineDateLocale, WalineEmojiInfo, WalineEmojiMaps, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLocale, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineTexRenderer, commentCount, defaultLang, defaultTexRenderer, defaultUploadImage, getMeta, init, locales, pageviewCount, version };