]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/staff/services/i18n.js
LP#1708291: introduce egI18N
[working/Evergreen.git] / Open-ILS / web / js / ui / default / staff / services / i18n.js
1 /**
2  * egI18N : service for I18N and L10N functions
3  *
4  * This is a grab-bag of stuff related to I18N.
5  *
6  */
7
8 angular.module('egCoreMod')
9 .factory('egI18N', ['egStrings',
10             function(egStrings) {
11     return {
12         ou_qualified_location_name : function(loc) {
13             return egStrings.$replace(
14                 egStrings.LOCATION_NAME_OU_QUALIFIED,
15                 {
16                     location_name : loc.name(),
17                     owning_lib_shortname : loc.owning_lib().shortname()
18                 }
19             );
20         }        
21     }
22 }]);