Socket
Book a DemoInstallSign in
Socket

jquery_saral_i18n

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery_saral_i18n

i18n easy Implementation using jQuery

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

jQuery-saral-i18n

i18n easy Implementation using jQuery     Github

Note- this is very easy plugin for localization using jQuery. You need to spend only 5 minute to setup and ready to go.

How To Setup

  • Download saral-i18n.js under js folder.
  • Paste this script file in your project directory (problily in "js" or "script" folder).
  • Go to your html page wheere you want to impliment. add this script into section.
  • Go to your project directory and create a folder called "locale". and inside locale, create en.json. (you can copy the locale folder from this repo.
  • Now download demo.html and see how attribute has beed added to catch the key. see uses section.

Uses

place i18n="key" in any element just like this.
or you can call i18n_placeholder="key" for input placeholder.
<input type="text" i18n="buttonTxt" i18n_placeholder="inputPlchdr">
<input type="radio" checked i18n="localtion2">
<input type="button" i18n="location1">
<input type="checkbox" i18n="location2">
<button i18n="buttonTxt"></button>
<select>
<option selected i18n="location1"></option>
<option i18n="location2"></option>
</select>
<textarea i18n="divTxt" rows="4" cols="45"></textarea>
<div i18n="divTxt">text from english</div>
<span i18n="spanTxt">text from english</span>


Author



Note - If you think that something need to be change, feel free to send pull request. I will merge into master.

Keywords

i18n

FAQs

Package last updated on 27 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.