通用评论

index.js 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. /**
  6. * 当前支持的语言
  7. */
  8. var SUPPORT_LOCALES = exports.SUPPORT_LOCALES = [{
  9. name: "English",
  10. value: "en-US"
  11. }, {
  12. name: "简体中文",
  13. value: "zh-CN"
  14. }];
  15. // 服务端返回的英文短语和中文提示的对应
  16. var LOCALES_RESPONSE = exports.LOCALES_RESPONSE = {
  17. "zh-CN": {
  18. "not found": "没有数据",
  19. "auth failed": "请先登录",
  20. "create comment failed": "评论未发送",
  21. "comment favor failed": "点赞失败",
  22. "delete comment favor failed": "取消点赞失败",
  23. "get comments failed": "评论加载失败",
  24. "create reply failed": "回复失败",
  25. "reply favor failed": "点赞失败",
  26. "delete reply favor failed": "取消点赞失败",
  27. "get replies failed": "回复加载失败",
  28. "content_illegal": "内容违规,请检查"
  29. },
  30. "en-US": {
  31. "not found": "No data",
  32. "auth failed": "Please Login",
  33. "create comment failed": "Comments not sent",
  34. "comment favor failed": "Liking failed",
  35. "delete comment favor failed": "Unliking failed",
  36. "get comments failed": "Comments loading failed",
  37. "create reply failed": "Replying failed",
  38. "reply favor failed": "Liking failed",
  39. "delete reply favor failed": "Unliking failed",
  40. "get replies failed": "Loading of replies failed",
  41. "content_illegal": "Please modify censored contents"
  42. }
  43. };
  44. //# sourceMappingURL=index.js.map