2 * egStrings : service for tracking page-specific string translations.
4 * Convience functions embedded herein are prefixed with "$" to avoid
5 * collisions with string keys, which are linked directly to the
8 * egStrings.A_STRING = 'hello, world {{foo}';
10 * egStrings.$replace(egStrings.A_STRING, {foo : 'bar'})
14 angular.module('egCoreMod').factory('egStrings',
15 ['$interpolate', function($interpolate) {
17 '$replace' : function(str, args) {
19 return $interpolate(str)(args);