通用评论

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. content_illegal: "内容违规,请检查"
  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. content_illegal: "Please modify censored contents"
  41. }
  42. };