Comments (7)
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.
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.
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.
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.
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.
Where can I get m2? thanks...
from magento2.
Start here: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install.html
from magento2.
Related Issues (20)
- About deleting license copyright comments in .html files HOT 1
- CSS minifiying sometimes results in blank CSS file due to PREG_JIT_STACK_LIMIT_ERROR in tubalmartin/cssmin HOT 8
- Animated gif not working HOT 23
- Missing indexing of required columns in catalog_product_entity_int table HOT 3
- Set Generate "category/product" URL Rewrites to "no" has no effect HOT 13
- Coupon usage limits not honored HOT 7
- Sales order item table, qty_backordered not set for configurable products HOT 2
- Currency not convert in new product widget without cache clean HOT 26
- Getting Database CPU usages high (100%) suddenlly HOT 6
- Configurbale Product update child product saving qty move issue HOT 24
- Cannot make city field optional in addresses HOT 6
- Columns functionality for \Magento\Theme\Block\Html\Topmenu seems broken HOT 6
- Export Product does not working with Large number of attribute HOT 12
- We are not getting the product_type and parent_item_id inside refund HOT 15
- magento 2 Braintree error verifyCard options must include a BIN. HOT 3
- We are not getting the base_grand_total value in order response HOT 13
- Customer address form allows random code in the name fields HOT 20
- Magento/OfflineShipping/Model/Carrier/Tablerate.php::collectRates is modifying the request for subsequent carriers HOT 8
- [Magento2]- Some amount (in decimal) is missing from total amount of the downloaded order . HOT 9
- Report viewed products does not seem to work correctly HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2.