Giter VIP home page Giter VIP logo

Comments (14)

jamuhl avatar jamuhl commented on September 22, 2024

can you try jquery-i18next v0.0.11

from jquery-i18next.

sqal avatar sqal commented on September 22, 2024

@jamuhl

Console is now clear but still something is wrong. Still does not parse values passed in options attribute:

from jquery-i18next.

jamuhl avatar jamuhl commented on September 22, 2024

can you $(yourEle).data('data-i18n-options') -> might be non valid json

from jquery-i18next.

sqal avatar sqal commented on September 22, 2024

Nope, this way doesn´t work either.Perhaps this is related to how jQuery converts this attribute (camelCase), look at the screenshot, data is there: http://prntscr.com/9unfdy

btw. i use jQuery 2.1.4

from jquery-i18next.

jamuhl avatar jamuhl commented on September 22, 2024

sorry my wrong should be $(yourEle).data('i18n-options') --> try v0.0.13

i always forgot...$sel.data appends data- to the attribute to read out...

from jquery-i18next.

sqal avatar sqal commented on September 22, 2024

Yeah. v.0.0.13 works as it should be. Thank you, really appreciate quick help on this :)

from jquery-i18next.

jamuhl avatar jamuhl commented on September 22, 2024

great...

from jquery-i18next.

sqal avatar sqal commented on September 22, 2024

although.. when i change the language using changeLanguage, values from data-i18n-options are not rendered again :( just other text from json.

from jquery-i18next.

jamuhl avatar jamuhl commented on September 22, 2024

changeLanguage does not trigger a rerender...it does only change the language set on i18next. you need to call $('body').localize(); again!

from jquery-i18next.

sqal avatar sqal commented on September 22, 2024

@jamuhl yes, I know. i am doing localize() inside changeLanguage callback :) all the text is translated correctly.. but as I said.. values from options are not rendered after that, they're rendered only first time on page load.

from jquery-i18next.

jamuhl avatar jamuhl commented on September 22, 2024

strange...will check again tomorrow....

from jquery-i18next.

jamuhl avatar jamuhl commented on September 22, 2024

sorry for the troubles...could you try v0.0.14?

from jquery-i18next.

sqal avatar sqal commented on September 22, 2024

Fixed :) Thank you.

from jquery-i18next.

biroplane avatar biroplane commented on September 22, 2024

How did you solve it? i'm trying with Handlebars rendered templates and selctpickr option but it doesen't change anything....

from jquery-i18next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.