Regarding query with localizing validation messages.
You can localize the SfDataForm validation messages using ErrorMessageResourceType and ErrorMessageResourceName Validation attributes.
In which ErrorMessageResourceName attribute is used as the key for the validation message in ErrorMessageResourceType attribute which is used to declare the Resources (.Resx) file for the localization.
Regarding query with localizing Display attributes such as short name, prompt and so.
We have provided the localization of Display attribute support in our latest Essential Studio Volume 2, 2018 (Version 16.2.0.41) and you can localize the Display attributes such Name, prompt and so using ResoureType DisplayAttribute which is used to declare the Resources (.Resx) file for the localization.
Please refer the code example for validation and display attribute localization.
[Display(Name ="User", Prompt = "EnterUsername", ResourceType = typeof(Localization))]
[Required(AllowEmptyStrings =false,ErrorMessageResourceType = typeof(Localization), ErrorMessageResourceName = "EmptyString")]
[StringLength(25,MinimumLength =5,ErrorMessageResourceType = typeof(Localization), ErrorMessageResourceName = "StringLength")]
public String Username { get; set; }
Please refer the below link for more details.
We have prepared a simple sample for the same. Please find the sample from the below link,
Based on the culture, you need to specify the corresponding culture string value of display and validation attribute in Resource (.Resx) file. The corresponding Resoure file (.resx) value updates only when the device language changes for android and ios.
Regarding support changing the language at runtime.
As of now we do not have direct support to change the loaded SfDataForm elements with other culture localization at run time (for e.g. changing localization in button click). If the shared detail is not meet your requirement, please revert us with more details about localization through device settings or sample level , so that we could analyze further and provide you a possible solution.