You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-fly/config/language.go

44 lines
1.3 KiB

package config
type Language struct {
WebCopyRight string
MainIntro string
Send string
Notice string
IndexSubIntro,IndexVisitors,IndexAgent,IndexDocument,IndexOnlineChat string
}
func CreateLanguage(lang string)*Language{
var language *Language
if lang=="en"{
language=&Language{
WebCopyRight: "TaoShihan",
MainIntro: "Simple and Powerful Go language online customer chat system",
IndexSubIntro: "GO-FLY, a Vue 2.0-based online customer service instant messaging system for PHP engineers and Golang engineers",
IndexDocument:"API Documents",
IndexVisitors:"Visitors Here",
IndexAgent:"Agents Here",
IndexOnlineChat:"Lets chat. - We're online",
Send:"Send",
Notice:"Hello and welcome to go-fly - how can we help?",
}
}
if lang=="cn"{
language=&Language{
WebCopyRight: "陶士涵的菜地版权所有",
MainIntro:"极简强大的Go语言在线客服系统",
IndexSubIntro:"GO-FLY一套为PHP工程师、Golang工程师准备的基于 Vue 2.0的在线客服即时通讯系统",
IndexVisitors:"访客入口",
IndexAgent:"客服入口",
IndexDocument:"接口文档",
IndexOnlineChat:"在线咨询",
Send:"发送",
Notice:"欢迎您访问go-fly有什么我能帮助您的",
}
}
return language
}