-
Notifications
You must be signed in to change notification settings - Fork 3.4k
aria-label should be an expression #1639
Comments
Hi, which component(s) are you talking about? Not everything uses aria-label. |
md-button primarily |
@kschwidder I was able to use angular-translate successfully for the |
Can you share the code example ? I have tried it with aria-label="{{'MYLABEL' | translate}}". |
I followed the docs on http://angular-translate.github.io/docs/#/guide and made local changes to our button demos to prove it worked (without committing). It looked something like this: var app = angular.module('myApp', ['ngMaterial', 'pascalprecht.translate']);
app.config(['$translateProvider', function ($translateProvider) {
$translateProvider.translations('en', {
'CAKE': 'Eat cake'
});
$translateProvider.translations('de', {
'CAKE': 'Cake eten'
});
$translateProvider.preferredLanguage('en');
}]); <md-button aria-label="{{'CAKE' | translate}}"><span class="icon"></span></md-button> |
Will check again. Thx ! Will close the issues |
Hi, would it be better to have a |
Here's a directive for that which I stumbled on. |
aria-label is currently a string which does not play nicely with multi-lingual apps. It should be an expression or string. In common apps you will set the label as {{LABEL | translate}}
The text was updated successfully, but these errors were encountered: