replace localizedMessage by angular service