mcintyre321 / FormFactory

MVC5, Core or standalone - Generate rich HTML5 forms from your ViewModels, or build them programatically

Home Page:http://formfactoryaspmvc.azurewebsites.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Localization

frozenshadow opened this issue · comments

Is there a possibility to translate/localize the validation messages (e.g. RequiredAttribute)?

You'd have to extend it yourself, but I'm happy to accept pull requests for any functionality like that. What approach for translation are you using, resx?

Thanks for the quick reply.
Currently I'm not using any translations yet, but I think I'll go for resx.

I don't have any experience with translating C# applications/websites, so that will be a challenge 😉
Once I got it working I will make a PR.

Are you doing asp.net MVC or asp.net core?

asp.net MVC

I made a working version for my project: https://github.com/frozenshadow/FormFactory.
Since I've never made a (NuGet) package before, I don't know what the requirements are.
So please let me know your thoughts ☺️

No idea. Haven't tried, modified or used that one.
I only customized it for my own project (a Enterprise solution).

It uses shared code from the main FormFactory project, so they both need to have been checked before I can pull the code into my repositoryy.

If you open your solution, and start each of the example projects, you should see the documentation site. If that works, I can safely merge the code, and then update the main FormFactory Nuget package.

Yeah sure, would love to!

I've just tested the MVC and Core examples. And it seems to be working ok.
But just to be safe, maybe you should also check it ;)

I'm more a 'rollback if necessary' kinda guy :)

Haha!
You can sent me an invite for Slack if you want.
My mail is on my profile page.