Using standard .gitattributes from Drupal 8 core.
Replaced calls of global t() function with calls to method.