Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime translation change #353

Closed
FrogDevelopper opened this issue Sep 29, 2015 · 1 comment · May be fixed by #473
Closed

Runtime translation change #353

FrogDevelopper opened this issue Sep 29, 2015 · 1 comment · May be fixed by #473

Comments

@FrogDevelopper
Copy link

Hi !

I define the labels elements on the initialisation of my controller, but need to be able to change the labels on runtime.
I use the code avec the documentation :

$scope.localLang = {
                    selectAll: $translate.instant('multi.select.all'),
                    selectNone: $translate.instant('multi.select.none'),
                    reset: $translate.instant('multi.select.reset'),
                    search: $translate.instant('multi.select.search'),
                    nothingSelected: $translate.instant('multi.select.nothing')
                };

Actually, when changing the local, all my labels on my page change but the multi-select, even if I redefine my $scope.localLang.

If I look at the code, you generate one the template, so I asume that I need to re-generate the component ? Or is there an other way ?

Thanks for any help

N.B.: sorry if it's trivial, but I'm more back-end dev than front-end, and I'm very bad with javascript and all >_<

@isteven
Copy link
Owner

isteven commented Oct 13, 2015

@FrogDevelopper ,

Sorry for the late reply. Unfortunately as for now it doesn't support dynamic translation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants