How do you localize static text in a listview item template?

2 posts, 0 answers
  1. David
    David avatar
    27 posts
    Member since:
    Jun 2014

    Posted 09 Sep 2014 Link to this post

    Just as my thread title suggests, I'm trying to find the best way/time to localize any static strings in my listview item templates.

    For example:

    <script type="script/x-kendo-template" id="meeting-item">
            <a data-item-id="#=meetingID#" href="\#meeting-details?id=#=meetingID#" data-transition="slide:left">
            <h3 class="time">#= startTime #</h3>
            <h3 class="counts"><span class="hc" data-i18n="dashboard.headCount"></span>: #=headCount# | Total: #=totalCount#</h3>
            <h2>#=meetingName#</h2>
            </a>
        </script>

    I have i18next working great in my regular Kendo Web widgets but in my mobile implementation, I can't find a view even that will successfully parse/swap out my localized values (the data-i18n tag).

    Any help would be greatly appreciated.
  2. David
    David avatar
    27 posts
    Member since:
    Jun 2014

    Posted 10 Sep 2014 Link to this post

    Thankful for Stack overflow. 

    Here's a solution in case others need it:

    http://stackoverflow.com/questions/25730178/how-to-properly-localize-strings-in-kendo-mobile
  3. Kendo UI is VS 2017 Ready
Back to Top