This is a migrated thread and some comments may be shown as answers.

Loading culture files with require.js not working with Web bundle anymore

1 Answer 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Luciano
Top achievements
Rank 1
Luciano asked on 25 Jul 2013, 08:15 AM
Hi again,

With version 2013.2.716 I've noticed that dynamically loading a culture file with require.js is broken. We use the kendo.web.min.js bundle and load different culture files dynamically depending on user preference or server instruction.

With this new version, I am getting what is described here: http://stackoverflow.com/questions/17705611/in-kendoui-web-2013-2-716-requiring-kendo-culture-xx-xx-min-js-produces-an-inval

Are kendo going to provide a solution for such a situation? Note that before the above mentioned version this mechanism worked fine for me.

From my point of view:
- it would be best if kendo fixed the culture files to still work with require.js and kendo.web bundle or provide a solution on how to do it in a way that works
- or as a last resort at least provide the option in the Custom Download page to be able to include the culture files in the custom.min.js so that I can get a bundle that is very similar to kendo.web but includes the culture files (although there would be a lot of overhead as I usually only dynamically load 3 to 4 culture files per page)

1 Answer, 1 is accepted

Sort by
0
Accepted
Mihai
Telerik team
answered on 25 Jul 2013, 02:18 PM
Hi Luciano,

There will be a fix for this in the next build.  Essentially, we removed the dependency on "kendo.core" from minified culture files, so they can now be used with RequireJS + the bundles.

I still don't recommend using the bundles with RequireJS in production, but it should be OK for development.

Best,
Mihai
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Luciano
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or