language.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package config
  2. type Language struct {
  3. WebCopyRight string
  4. MainIntro string
  5. Send string
  6. Notice, Maintech, NowAsk, LaterAsk string
  7. IndexSubIntro, IndexVisitors, IndexAgent, IndexDocument, IndexOnlineChat string
  8. }
  9. func CreateLanguage(lang string) *Language {
  10. var language *Language
  11. if lang == "en" {
  12. language = &Language{
  13. WebCopyRight: "twong",
  14. MainIntro: "twong online customer chat system",
  15. IndexSubIntro: "for effectiveness, for customers",
  16. IndexDocument: "API Documents",
  17. IndexVisitors: "Visitors Here",
  18. IndexAgent: "Agents Here",
  19. IndexOnlineChat: "Let’s chat. - We're online",
  20. Send: "Send",
  21. Notice: "Hello and welcome to twong - how can we help?",
  22. Maintech: "Main technical architecture",
  23. NowAsk: "Start Chat",
  24. LaterAsk: "Chat Later",
  25. }
  26. }
  27. if lang == "cn" {
  28. language = &Language{
  29. WebCopyRight: "美天旺版权所有",
  30. MainIntro: "美天旺在线客服系统",
  31. IndexSubIntro: "专注效率,服务客服",
  32. IndexVisitors: "访客入口",
  33. IndexAgent: "客服入口",
  34. IndexDocument: "文档",
  35. IndexOnlineChat: "点击交流",
  36. Send: "发送",
  37. Notice: "欢迎您使用客服系统!点击测试网页版客服",
  38. Maintech: "主要技术架构",
  39. NowAsk: "现在咨询",
  40. LaterAsk: "稍后再说",
  41. }
  42. }
  43. return language
  44. }