Skip to content

Commit

Permalink
toggle-switch: translate label and description
Browse files Browse the repository at this point in the history
* closes rero/rero-ils#1306

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Dec 2, 2020
1 parent 8fc1e70 commit b426a92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { isEmpty, removeEmptyValues } from '../../utils';
<input class="custom-control-input" type="checkbox" id="toggle-switch-{{ field.id }}" \
(change)="toggle($event)" [checked]="tsOptions.enabled">
<label class="custom-control-label" for="toggle-switch-{{ field.id }}" \
[tooltip]="tsOptions.description">{{ tsOptions.label }}</label>
[tooltip]="tsOptions.description|translate" translate>{{ tsOptions.label }}</label>
</div>
</div>
<ng-container *ngIf="tsOptions.enabled" #fieldComponent></ng-container>
Expand Down

0 comments on commit b426a92

Please sign in to comment.