通用评论

index.js.map 2.2KB

1
  1. {"version":3,"sources":["../../src/lang/index.js"],"names":["SUPPORT_LOCALES","name","value","LOCALES_RESPONSE"],"mappings":";;;;;AAAA;;;AAGO,IAAMA,4CAAkB,CAC7B;AACEC,QAAM,SADR;AAEEC,SAAO;AAFT,CAD6B,EAK7B;AACED,QAAM,MADR;AAEEC,SAAO;AAFT,CAL6B,CAAxB;;AAWP;AACO,IAAMC,8CAAmB;AAC9B,WAAS;AACP,iBAAa,MADN;AAEP,mBAAe,MAFR;AAGP,6BAAyB,QAHlB;AAIP,4BAAwB,QAJjB;AAKP,mCAA+B,UALxB;AAMP,2BAAuB,UANhB;AAOP,2BAAuB,QAPhB;AAQP,0BAAsB,QARf;AASP,iCAA6B,UATtB;AAUP,0BAAsB;AAVf,GADqB;AAa9B,WAAS;AACP,iBAAa,SADN;AAEP,mBAAe,qBAFR;AAGP,6BAAyB,0BAHlB;AAIP,4BAAwB,uBAJjB;AAKP,mCAA+B,UALxB;AAMP,2BAAuB,gCANhB;AAOP,2BAAuB,qBAPhB;AAQP,0BAAsB,wBARf;AASP,iCAA6B,4BATtB;AAUP,0BAAsB;AAVf;AAbqB,CAAzB","file":"index.js","sourcesContent":["/**\r\n * 当前支持的语言\r\n */\r\nexport const SUPPORT_LOCALES = [\r\n {\r\n name: \"English\",\r\n value: \"en-US\"\r\n },\r\n {\r\n name: \"简体中文\",\r\n value: \"zh-CN\"\r\n }\r\n];\r\n\r\n// 服务端返回的英文短语和中文提示的对应\r\nexport const LOCALES_RESPONSE = {\r\n \"zh-CN\": {\r\n \"not found\": \"没有数据\",\r\n \"auth failed\": \"请先登录\",\r\n \"create comment failed\": \"创建评论失败\",\r\n \"comment favor failed\": \"评论点赞失败\",\r\n \"delete comment favor failed\": \"评论取消点赞失败\",\r\n \"get comments failed\": \"获取评论列表失败\",\r\n \"create reply failed\": \"创建回复失败\",\r\n \"reply favor failed\": \"回复点赞失败\",\r\n \"delete reply favor failed\": \"删除回复点赞失败\",\r\n \"get replies failed\": \"获取回复列表失败\"\r\n },\r\n \"en-US\": {\r\n \"not found\": \"no data\",\r\n \"auth failed\": \"please log in first\",\r\n \"create comment failed\": \"Failed to create comment\",\r\n \"comment favor failed\": \"Comment likes failure\",\r\n \"delete comment favor failed\": \"评论取消点赞失败\",\r\n \"get comments failed\": \"Comment cancels praise failure\",\r\n \"create reply failed\": \"Create reply failed\",\r\n \"reply favor failed\": \"Reply to praise failed\",\r\n \"delete reply favor failed\": \"Delete reply clicks failed\",\r\n \"get replies failed\": \"Failed to get reply list\"\r\n }\r\n};\r\n"]}