i18n directive resolves messages with a promise to allow proper applying to the scope when not using the $http service