Doubt with Spanish translation

Hi,

the word "more" cannot be found in any control within "QueryBuilding" to be able to translate it via Ln10.

Can it be translated?



Thanks in advance.

Regards.




7 Replies 1 reply marked as answer

YA YuvanShankar Arunagiri Syncfusion Team September 8, 2022 12:26 PM UTC

Hi Jose,


Sorry for the delay. We are validating your query and will update you the details on or before 12th September 2022.


Regards,

YuvanShankar A



JA Jose Antonio September 8, 2022 12:35 PM UTC

ok, thank you very much.


Regards.



YA YuvanShankar Arunagiri Syncfusion Team September 14, 2022 01:42 PM UTC

Hi Jose,


We have validated your reported query and prepared the sample based on your requirement. please refer the below code snippet and sample link. we can achieve your requirement by using the valueModel property of the query builder.

[index.js]:

valueModel = { multiSelectModel: { change: this.onChange } };

………………

onChange() {

        if (document.getElementsByClassName('e-remain')[0]) {

            var text = document.getElementsByClassName('e-remain')[0].innerHTML;

            var myArray = text.split(' ');

            var result = myArray[0] + ' mehr..';

            document.getElementsByClassName('e-remain')[0].innerHTML = result;

        }

    }

…………………..

 <QueryBuilderComponent dataSource={employeeData} columns={this.columnData} rule={this.importRules}  locale='es' valueModel={this.valueModel} ref={(scope=> { this.qbObj = scope; }}>

                            </QueryBuilderComponent>

 


Sample link: https://stackblitz.com/edit/react-baolb2?file=index.js


Could you please check with the above code and get back to us, if you need any further assistance on this.


Regards,

YuvanShankar A



JA Jose Antonio replied to YuvanShankar Arunagiri September 14, 2022 07:48 PM UTC

Hi, thanks for the answer, but there is still something left.


This example was executed with DisplayMode = 'Vertical'


I select some titles ...


the last selection causes the message "more" to pop out...



And only the word "more" is translated when the "onchange" event is triggered when the list loses focus, rather than immediately translating when the word "more" appears.



Thanks.


Best regards.





YA YuvanShankar Arunagiri Syncfusion Team September 15, 2022 08:39 AM UTC

Hi Jose,


We have validated your reported query and prepared the sample based on your requirement. please refer the below code snippet and sample link. we can achieve your requirement by using the valueModel property of the query builder with select and removed event of multiselect component.

[index.js]:

valueModel = { multiSelectModel: { select: this.onChangeremoved: this.onChange } };

………………

onChange() {

        setTimeout(() => {

            if (document.getElementsByClassName('e-remain')[0]) {

                var text = document.getElementsByClassName('e-remain')[0].innerHTML;

                var myArray = text.split(' ');

                var result = myArray[0] + ' mehr..';

                document.getElementsByClassName('e-remain')[0].innerHTML = result;

            }

        }, 20); 

    }

…………………..

 <QueryBuilderComponent dataSource={employeeData} columns={this.columnData} rule={this.importRules}  locale='es' valueModel={this.valueModel} ref={(scope=> { this.qbObj = scope; }}>

                            </QueryBuilderComponent>

 


Sample link: https://stackblitz.com/edit/react-baolb2?file=index.js


Could you please check with the above code and get back to us, if you need any further assistance on this.


Regards,

YuvanShankar A


Marked as answer

JA Jose Antonio replied to YuvanShankar Arunagiri September 15, 2022 04:24 PM UTC

Hi, is solucionated.


Thanks very much.


Regards.



YA YuvanShankar Arunagiri Syncfusion Team September 16, 2022 06:46 AM UTC

Hi Jose,


We are happy to hear that your requirement has been fulfilled. Please get back to us if you need any further assistance on this.


Regards,

YuvanShankar A


Loader.
Up arrow icon