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

2 posts, 1 answers
  1. Luciano
    Luciano avatar
    12 posts
    Member since:
    Jul 2013

    Posted 25 Jul 2013 Link to this post

    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)

  2. Answer
    Mihai
    Admin
    Mihai avatar
    153 posts

    Posted 25 Jul 2013 Link to this post

    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!
Back to Top