Giter Site home page Giter Site logo

Comments (7)

colinmollenhour avatar colinmollenhour commented on May 4, 2024

This would best be handled by merging it with the other JS files into the main merged JS file so it can be cached in the browser and not require an Ajax request. Also using Ajax would complicate using the Translator because you'd have to wait until it was loaded.

from magento2.

stalniy avatar stalniy commented on May 4, 2024

Yes you are right, your suggestion is better. But also with AJAX you must not wait response. Because all translation for JS in general is used for form validation. And all translations can be fetched before user make some actions

from magento2.

magento-team avatar magento-team commented on May 4, 2024

Hi, stalniy,

thank you for the proposal. We already have people working on this topic.

The translations will be moved from page source to an automatically pre-composed static Javascript file, thus they won't affect SEO in any way. And the file will be cached by the user's browser, thus it won't consume network traffic upon each request.

Closing the issue.

from magento2.

fredbrunken avatar fredbrunken commented on May 4, 2024

Guys, I am not even sure if this message will be seen, since this issue has been closed since 2012, but that is exactly the problem. We are coming to the end of 2015, 4 Years after the issue was considered as closed and I still have all this code on my 1.9.2.1 magento store. Any news on it? Will it be availbe on the new magento 2? thanks

from magento2.

alankent avatar alankent commented on May 4, 2024

Quite a lot has been done in the M2 code base since 2012! Have you had a look to see if your issue has been addressed? Translations have been revamped in M2.

from magento2.

fredbrunken avatar fredbrunken commented on May 4, 2024

Where can I get m2? thanks...

from magento2.

 avatar commented on May 4, 2024

Start here: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install.html

from magento2.

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.