angular-translate/angular-translate — pull request #551 by rewoo (2014-05-13 09:14:02+00:00)
Title: Instant interpolation of unkonwn

If a translation id does not exists, $translate.instant() now interpolates the
translation id. This supports gettext-ish translations where the
translation id is the base translation text.

Example:

// Configuration
$translateProvider.translations('en', {});

// Code
var result = $translate.instant('Hi {{ name }}!', {name: 'John Doe'});
// interpolated result is 'Hi John Doe!'

I refactored Interpolator() and interpolateTranslation() for DRY. Hope that is fine.