通用评论

index.js.map 2.0KB

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,OAHlB;AAIP,4BAAwB,MAJjB;AAKP,mCAA+B,QALxB;AAMP,2BAAuB,QANhB;AAOP,2BAAuB,MAPhB;AAQP,0BAAsB,MARf;AASP,iCAA6B,QATtB;AAUP,0BAAsB;AAVf,GADqB;AAa9B,WAAS;AACP,iBAAa,SADN;AAEP,mBAAe,cAFR;AAGP,6BAAyB,mBAHlB;AAIP,4BAAwB,eAJjB;AAKP,mCAA+B,iBALxB;AAMP,2BAAuB,yBANhB;AAOP,2BAAuB,iBAPhB;AAQP,0BAAsB,eARf;AASP,iCAA6B,iBATtB;AAUP,0BAAsB;AAVf;AAbqB,CAAzB","file":"index.js","sourcesContent":["/**\n * 当前支持的语言\n */\nexport const SUPPORT_LOCALES = [\n {\n name: \"English\",\n value: \"en-US\"\n },\n {\n name: \"简体中文\",\n value: \"zh-CN\"\n }\n];\n\n// 服务端返回的英文短语和中文提示的对应\nexport const LOCALES_RESPONSE = {\n \"zh-CN\": {\n \"not found\": \"没有数据\",\n \"auth failed\": \"请先登录\",\n \"create comment failed\": \"评论未发送\",\n \"comment favor failed\": \"点赞失败\",\n \"delete comment favor failed\": \"取消点赞失败\",\n \"get comments failed\": \"评论加载失败\",\n \"create reply failed\": \"回复失败\",\n \"reply favor failed\": \"点赞失败\",\n \"delete reply favor failed\": \"取消点赞失败\",\n \"get replies failed\": \"回复加载失败\"\n },\n \"en-US\": {\n \"not found\": \"No data\",\n \"auth failed\": \"Please Login\",\n \"create comment failed\": \"Comments not sent\",\n \"comment favor failed\": \"Liking failed\",\n \"delete comment favor failed\": \"Unliking failed\",\n \"get comments failed\": \"Comments loading failed\",\n \"create reply failed\": \"Replying failed\",\n \"reply favor failed\": \"Liking failed\",\n \"delete reply favor failed\": \"Unliking failed\",\n \"get replies failed\": \"Loading of replies failed\"\n }\n};\n"]}