We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Localization of standard element messages

Thread ID:

Created:

Updated:

Platform:

Replies:

146201 Jul 25,2019 08:37 AM UTC Jul 29,2019 11:37 AM UTC ASP.NET MVC - EJ 2 4
loading
Tags: MultiSelectDropdown
Dima
Asked On July 25, 2019 08:37 AM UTC

How to connect ru-RU localization for all project controls. If you can step by step guide to connect to an existing project without syncfusion.

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On July 26, 2019 01:31 PM UTC

Hi Dima, 
 
Thank you for contacting Syncfusion support. 
 
Please refer the below documentation link for about localization in Syncfusion components, 
 
Could you please check the above link and get back to us if you need any further assistance on Syncfusion components? 
 
Regards, 
Vinoth Kumar S 


Dima
Replied On July 26, 2019 02:37 PM UTC

Error: L10n.load is not a function

ej.base.enableRipple(true);
    var L10n = new ej.base.L10n();
    var setCulture = new ej.base.setCulture();

    L10n.load({
        'ru-RU': {
            'dropdowns': {
                'noRecordsTemplate': 'Записей не найдено',
                'actionFailureTemplate': 'Ошибка запроса',
                'overflowCountTemplate': '+ $ {count} больше ..',
                'selectAllText': 'Выбрать все',
                'unSelectAllText': 'Снять все',
                'totalCountTemplate': '$ {count} выбран'
            },
            'drop-down-list': {
                'noRecordsTemplate': 'Записей не найдено',
                'actionFailureTemplate': 'Ошибка запроса'
            },
            'combo-box': {
                'noRecordsTemplate': 'Записей не найдено',
                'actionFailureTemplate': 'Ошибка запроса'
            },
            'auto-complete': {
                'noRecordsTemplate': 'Записей не найдено',
                'actionFailureTemplate': 'Ошибка запроса'
            },
            'multi-select': {
                'noRecordsTemplate': 'Записей не найдено',
                'actionFailureTemplate': 'Ошибка запроса',
                'overflowCountTemplate': '+ $ {count} больше ..',
                'selectAllText': 'Выбрать все',
                'unSelectAllText': 'Снять все'
            },
        }
    });


    <script src="~/Scripts/jquery-3.3.1.js"></script>
    <script src="~/Scripts/jquery-ui-1.12.1.js"></script>
    <script src="~/Scripts/jquery.validate.js"></script>
    <script src="~/Scripts/popper.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js" type="text/javascript"></script>
    <script src="~/Scripts/inputmask/inputmask.js" type="text/javascript"></script>
    <script src="~/Scripts/inputmask/jquery.inputmask.js" type="text/javascript"></script>
    <script src="~/Scripts/inputmask/inputmask.extensions.js" type="text/javascript"></script>
    <script src="~/Scripts/inputmask/inputmask.date.extensions.js" type="text/javascript"></script>
    <script src="~/Scripts/inputmask/inputmask.numeric.extensions.js" type="text/javascript"></script>

    <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js" type="text/javascript"></script>
    <script src="~/Scripts/app.js" type="text/javascript"></script>

Dima
Replied On July 26, 2019 02:45 PM UTC

Or Error 
Cannot read property 'L10n' of undefined
    at index.js:1

Attachment: index_61b5eb0c.7z

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On July 29, 2019 11:37 AM UTC

Hi Dima, 
 
Good day to you. 
 
We have checked the reported issue with code snippet shared and we found that you have assigned the L10 as a method to the variable. So, we suggest you assign the L10 as mentioned in the below code example to resolve the reported issue. 
 
var L10n = ej.base.L10n; 
var setCulture = new ej.base.setCulture("ru-RU"); 
 
L10n.load({ 
    'ru-RU': { 
        'dropdowns': { 
            'noRecordsTemplate': 'Записей не найдено', 
            'actionFailureTemplate': 'Ошибка запроса', 
            'overflowCountTemplate': '+ $ {count} больше ..', 
            'selectAllText': 'Выбрать все', 
            'unSelectAllText': 'Снять все', 
            'totalCountTemplate': '$ {count} выбран' 
        }, 
        'drop-down-list': { 
            'noRecordsTemplate': 'Записей не найдено', 
            'actionFailureTemplate': 'Ошибка запроса' 
        }, 
        'combo-box': { 
            'noRecordsTemplate': 'Записей не найдено', 
            'actionFailureTemplate': 'Ошибка запроса' 
        }, 
        'auto-complete': { 
            'noRecordsTemplate': 'Записей не найдено', 
            'actionFailureTemplate': 'Ошибка запроса' 
        }, 
        'multi-select': { 
            'noRecordsTemplate': 'Записей не найдено', 
            'actionFailureTemplate': 'Ошибка запроса', 
            'overflowCountTemplate': '+ $ {count} больше ..', 
            'selectAllText': 'Выбрать все', 
            'unSelectAllText': 'Снять все' 
        }, 
    } 
}); 
 
 
For your convenience, we have prepared the sample for DropDownList with “ru-RU” culture. Please check the below link, 
 
Please refer the below UG documentation link to know more details about localization, 
 
Could you please check the above details and get back to us if you need any further assistance on this? 
 
Regards, 
Vinoth Kumar S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon