Comments (5)
Thanks for taking the time to test out the new package. You can override all errors in your module config by a call to the xtformconfigprovider.setErrorMessages and providing each key and value. Can you not make the calls to gettext here?
from xtform.
I tried that, but unfortunatly the function I need to inject is a service and you can not inject a service in a config.
But I'll look for an alternative solution.
from xtform.
I managed to get a translation with the following statement:
msg-required="{{'required'|translate}}"
The disadvantage of course is that I need to add this to every input field.
from xtform.
Ah right, I guess I could make a change so that setErrorMessages() can be
called from the service as well as the provider.
On Mon, Jan 19, 2015 at 10:45 PM, ReinierGielen [email protected]
wrote:
I managed to get a translation with the following statement:
msg-required="{{'required'|translate}}"The disadvantage of course is that I need to add this to every input field.
—
Reply to this email directly or view it on GitHub
#25 (comment).
from xtform.
I'm using the famous angular-translate and I'm also adding the translation filter to each field individually.
+1 for setErrorMessages() on a service level.
from xtform.
Related Issues (20)
- CSS styles required for red borders are not documented HOT 1
- seperate tooltip element HOT 3
- Tooltip hover behaviours HOT 4
- $validators HOT 1
- bower install not working HOT 4
- inline validation doesn't work correctly with dynamic id's HOT 2
- fix code for minification HOT 1
- How to use the pattern type for xtFormValidationInline HOT 2
- xtForm + jasmine
- Custom strategy for validation errors on form load
- it's 2015
- xtForm and UI Bootstrap $apply already in progress HOT 3
- Custom validation support? HOT 8
- Tooltips does not hide when I hit browser back button HOT 2
- Add main file to bower.json
- Problem with the validation
- Tooltips left behind HOT 2
- Does not work with nested ng-form
- Installation documentation incorrect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xtform.