jQuery本地化工具:jQuery.LocalizationTool.js
jQuery.localizationTool.js 是简单的本地化工具,提供下拉菜单的语言选项,会翻译你提供语言的字符串,支持 RTL(从右到左)的文本顺序。 在线演示
<div id="localizationToolbar"></div> <div id="someId">Original string goes here</div> $("#localizationToolbar").localizationTool({ strings : { 'id:someId': { 'it_IT' : 'Italian translation here', 'de_DE' : 'German translation here', 'fr_FR' : 'French translation here', 'es_ES' : 'Spanish translation here', 'en_AU' : 'Australian english translation here', 'br_PT' : 'Portuguese translation here', 'en_GB' : 'British english translation here', 'jp_JP' : 'Japanese translation here', 'ar_TN' : 'Arabic translation here', }, /* ... more strings can follow */ } });
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!