Skip to content

Runtime translation change #353

Closed

Description

@FrogDevelopper

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 >_<

Activity

  1. isteven commented on Oct 13, 2015

    @isteven
    Owner

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions