Skip to content

Runtime translation change #353

Closed
@FrogDevelopper

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

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