Translate required message

I want to translate the required message"This field is required"

, can you help me ?

I am using this code for translation, I have tried to set required:"مطلوب", but I still get the message in English 

   
      L10n.load({
        'ar-AE': {
          gantt: {
            general: 'عام',
            emptyRecord: 'لا توجد بيانات',
            id: '#',
            name: 'الاسم'
}}})

1 Reply

AG Ajithkumar Gopalakrishnan Syncfusion Team August 22, 2024 11:46 AM UTC

Hi Reem,


Greetings from Syncfusion Support,

To achieve your requirement, we suggest using the formValidator in the L10n method. This property allows you to translate the required keyword from English to Arabic. We have attached a code snippet and sample for your reference.

L10n.load({

'ar-AE': {

    'formValidator':{

        'required': 'مطلوب',

    },

    "gantt": {

    ...

    }

}

You can find a working example on StackBlitz.

For more information, you may refer to the following link:

https://ej2.syncfusion.com/angular/documentation/gantt/global-local#localization

https://ej2.syncfusion.com/javascript/documentation/form-validator/localization

If you have any further questions or need additional assistance, please let me know!


Regards,

Ajithkumar G


Loader.
Up arrow icon