I got the many similar questions but no one is related to this.
'use strict'
var module = angular.module('TranslationModule', []);
module.service('TranslationSevice', function (dataService, $location) {
this.translationsDictionary;
var getTranslationsDictionary = function () {
return dataService('Translations?culture=' + $location.search().culture).get(function (data) {
try {
this.translationsDictionary = data;
}
catch (ex) {
console.log('Error!', ex);
}
});
}
getTranslationsDictionary();
});