tips.js
359 Bytes
var dic=require("./DicTips");
exports.getTips=function(key){
if(isJian())
{
return dic.Dic[key+"_jian"];
}
else
{
return dic.Dic[key+"_fan"];
}
};
exports.isJian=isJian;
function isJian(){
var currentDomain=YohoConfig.mainUrl;
if(currentDomain.indexOf("hk")>=0)
{
return false;//false,繁体
}
return true;//简体,
}
window.DicTips={
}