通用评论

index.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * 当前支持的语言
  3. */
  4. export const SUPPORT_LOCALES = [
  5. {
  6. name: "English",
  7. value: "en-US"
  8. },
  9. {
  10. name: "简体中文",
  11. value: "zh-CN"
  12. }
  13. ];
  14. // 服务端返回的英文短语和中文提示的对应
  15. export const LOCALES_RESPONSE = {
  16. "zh-CN": {
  17. "not found": "没有数据",
  18. "auth failed": "请先登录",
  19. "create comment failed": "评论未发送",
  20. "comment favor failed": "点赞失败",
  21. "delete comment favor failed": "取消点赞失败",
  22. "get comments failed": "评论加载失败",
  23. "create reply failed": "回复失败",
  24. "reply favor failed": "点赞失败",
  25. "delete reply favor failed": "取消点赞失败",
  26. "get replies failed": "回复加载失败"
  27. },
  28. "en-US": {
  29. "not found": "No data",
  30. "auth failed": "Please Login",
  31. "create comment failed": "Comments not sent",
  32. "comment favor failed": "Liking failed",
  33. "delete comment favor failed": "Unliking failed",
  34. "get comments failed": "Comments loading failed",
  35. "create reply failed": "Replying failed",
  36. "reply favor failed": "Liking failed",
  37. "delete reply favor failed": "Unliking failed",
  38. "get replies failed": "Loading of replies failed"
  39. }
  40. };