describe('strong-api', function(){
  var StrongAPI = require('../lib/strong-api');
  var api;
  
  beforeEach(function () {
    api = new StrongAPI();
  });

  it('should translate in the default default locale', function() {
    expect(api.translate('everything')).toEqual('I am a translated string for locale: en');
  });

  it('should translate in the recently set default locale', function() {
    api.default_locale = 'de';
    expect(api.translate('everything')).toEqual('I am a translated string for locale: de');
  });

  it('should translate in the current locale', function() {
    api.default_locale = 'de';
    api.locale = 'en';
    expect(api.translate('everything')).toEqual('I am a translated string for locale: en');
  });

  it('should translate in the option-specified locale', function() {
    api.default_locale = 'de';
    api.locale = 'en';
    expect(api.translate('everything', { locale: 'es' })).toEqual('I am a translated string for locale: es');
  });

});
@@ -974,11 +974,401 @@
 %0A  %7D);%0A%0A
+  // Interpolation%0A  it('should use named arguments as substitutions', function() %7B%0A    // Setup the test case, assuming you have this string%0A    var fake_back = %7B 'en': %7B '.hello': 'Hello, %25(name)' %7D %7D;%0A%0A    // Make sure you can toss variables at it%0A    var user = %7B'name': 'Johnny'%7D;%0A    var result = api.translate( '.hello', user );%0A    expect(result).toEqual( 'Hello, Johnny' );%0A  %7D);%0A%0A
 %7D);

Write a failing test to show variable substitution