Hey,
I've been looking for a good workaround for ng-grid using
angular-translate, and I wondering if you would share it with me.
Thanks,
Matthew Rattray
On Tuesday, May 27, 2014 2:46:10 AM UTC-5, Richard Seldon wrote:
>
> The API changed from “uses” to “use"
>
> $scope.switchLanguage = function (key) {
> $translate.use(key);
> };
>
> Have used Angular Translate for current site, and it works great.
>
> https://github.com/angular-translate/angular-translate
>
> There is an issue with ng-grid due to the fact that the translate function
> returns promises, but ng-grid expects a synchronous call returning a String.
>
> Have a nice workaround for that if you are using ng-grid.
>
> Let me know.
>
> Best regards,
>
>
>
> On 27 May 2014, at 16:38, T M <[email protected] <javascript:>> wrote:
>
> hi there:
>
> I found a sample about language translation service:
>
> http://plnkr.co/edit/iOZwDm?p=preview
>
> However, it is not working. The heading and the two button text did not
> get tranlated.
>
> Can you either tell me what is wrong in the sample, or tell me some other
> working sample about multi-language translation? Thank you!
>
> Thomas Mao
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.