Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 993 Bytes

README.md

File metadata and controls

32 lines (17 loc) · 993 Bytes

international

a node project to pickText and transform 国际化

把js中的中文转成国际化配置, 并最终提取到propertyies.js中

demo1:

CC.showMsg("取消授权失败",true,false,"error");

==》

CC.showMsg(top.Lang.Mail.Write.quxiaoshouquanshibai,true,false,"error");//取消授权失败

demo2:

html.push("<div class="td3">三个月内有效");

==>

html.push("<div class="td3">"+top.Lang.Mail.Write.sangeyuenayouxiao+"");//<div class="td3">三个月内有效

demo3:

html += <input id="chkAutoDestroy" tabindex="21" type="checkbox" title="阅读"><label for="chkAutoDestroy" title="阅读">

==>

html += " <input id="chkAutoDestroy" tabindex="21" type="checkbox" title='"+top.Lang.Mail.Write.yjydhzxhhywaMoVJJfcgxztshzxh+"'><label for="chkAutoDestroy" title='"+top.Lang.Mail.Write.yjydhzxhhyRosoBRRccgxztshzxh+"'>";//

demo4:

支持 结尾以 \ 来连接字符串的情况