Created
March 26, 2014 08:46
-
-
Save rubenv/9779008 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Warning: The stuff below will only work if whatever is in type.name has matching string mappings in your .po files. | |
For instance, if columnTypes is an array in your controller, annotate the strings: | |
http://angular-gettext.rocketeer.be/dev-guide/annotate-js/ | |
--> | |
<select ng-model="column.type" ng-options="type.id as translate(type.name) for type in columnTypes"></select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll also need to expose translate on the scope: