How to deploy translations in code?
You could use Features Translations:


  Features Translations adds a new Features component called
  Translations that allows to import/export sets of translated strings.
  String sets can be chosen per language and per text group.