package config

type Language struct {
	WebCopyRight                                                             string
	MainIntro                                                                string
	Send                                                                     string
	Notice, Maintech, NowAsk, LaterAsk                                       string
	IndexSubIntro, IndexVisitors, IndexAgent, IndexDocument, IndexOnlineChat string
}

func CreateLanguage(lang string) *Language {
	var language *Language

	if lang == "en" {
		language = &Language{
			WebCopyRight:    "twong",
			MainIntro:       "twong online customer chat system",
			IndexSubIntro:   "for effectiveness, for customers",
			IndexDocument:   "API Documents",
			IndexVisitors:   "Visitors Here",
			IndexAgent:      "Agents Here",
			IndexOnlineChat: "Let’s chat. - We're online",
			Send:            "Send",
			Notice:          "Hello and welcome to twong - how can we help?",
			Maintech:        "Main technical architecture",
			NowAsk:          "Start Chat",
			LaterAsk:        "Chat Later",
		}
	}
	if lang == "cn" {
		language = &Language{
			WebCopyRight:    "美天旺版权所有",
			MainIntro:       "美天旺在线客服系统",
			IndexSubIntro:   "专注效率,服务客服",
			IndexVisitors:   "访客入口",
			IndexAgent:      "客服入口",
			IndexDocument:   "文档",
			IndexOnlineChat: "点击交流",
			Send:            "发送",
			Notice:          "欢迎您使用客服系统！点击测试网页版客服",
			Maintech:        "主要技术架构",
			NowAsk:          "现在咨询",
			LaterAsk:        "稍后再说",
		}
	}
	return language
}
