通用评论

index.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. },
  29. "en-US": {
  30. "not found": "No data",
  31. "auth failed": "Please Login",
  32. "create comment failed": "Comments not sent",
  33. "comment favor failed": "Liking failed",
  34. "delete comment favor failed": "Unliking failed",
  35. "get comments failed": "Comments loading failed",
  36. "create reply failed": "Replying failed",
  37. "reply favor failed": "Liking failed",
  38. "delete reply favor failed": "Unliking failed",
  39. "get replies failed": "Loading of replies failed"
  40. }
  41. };
  42. //# sourceMappingURL=index.js.map