在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):darksmo/jquery-localization-tool开源软件地址(OpenSource Url):https://github.com/darksmo/jquery-localization-tool开源编程语言(OpenSource Language):JavaScript 90.7%开源软件介绍(OpenSource Introduction):jquery.localizationTool.jsSimple localization dropdown for your website. Translates strings in the languages you provide. This widget is built with the single page scenario in mind. It supports right-to-left text direction when languages like Arabic are selected. ExampleInitialize with: <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',
'pt_BR' : 'Portuguese translation here',
'en_GB' : 'British english translation here',
'jp_JP' : 'Japanese translation here',
'ar_TN' : 'Arabic translation here',
},
/* ... more strings can follow */
}
}); Destroy with: $("#localizationToolbar").localizationTool('destroy'); DemoFor live demos please visit the project webpage: http://darksmo.github.io/jquery-localization-tool/ For a Quick Start, step-by-step guide, have a look at the source html of the following file: https://github.com/darksmo/jquery-localization-tool/blob/master/demo/index.html Options
Methods
JSDocSee index.html in docs/ directory DependenciesjQuery 1.6.4+ LicenseCopyright (c) 2014 Savio Dimatteo Licensed under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论