coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

get string from javascript #97

Open maxdiable opened 6 years ago

maxdiable commented 6 years ago

hi, i put this code in my page: var opts = { language: "en-GB", pathPrefix: "../localize", skipLanguage: "default" }; $("[data-localize]").localize("lang", opts);

it's possible to get the string from json file?

I tried with:

console.log($.localize.data["localize/lang"]["title"]);

but not working!

any help?

br Max