coderifous / jquery-localize

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

Doas jquery-localize works with jquery-1.9.1 ? #25

Closed redamimouni closed 11 years ago

redamimouni commented 11 years ago

Hi,

i'm trying to localize my jquery mobile application with jquery-localize, I followed the steps in https://github.com/coderifous/jquery-localize , I have an exception in jquery-1.9.1 "Uncaught SyntaxError: Unexpected end of input". I tried to resolve it, but the problem still persist. Now I'm wondering if the plugin works with the jquery version that i'm using.

ecourdoisy commented 11 years ago

Have you find the solution ? Localize works with 1.9 version ?

I also tried with jquery 1.9 and have this error : [LOG] Error: SyntaxError: JSON Parse error: Unexpected EOF

redamimouni commented 11 years ago

No, I didn't find the solution, so I moved and I worked with i18next, another jquery plugin.

alexwebgr commented 11 years ago

hi eclectic

apparently there is something wrong with your json file

i have successfully managed to integrate jquery.localize in my apps using jquery 1.9

{ "key" : "value", "key1" : "value1" }

that is valid json object

alex

ecourdoisy commented 11 years ago

I've added your json and have the same error. It works with jQuery 1.7

coderifous commented 11 years ago

I'm sure you've since solved the problem, but the error is about malformed JSON. An easy mistake is to forget that JSON is not javascript, and you need quotes around your keys in JSON. That's sometimes the tricky source of JSON parse errors. The plugin works w/ jQuery 1.9.