Query with INotificationDistributionType and additional language packs

Hi, I am attempting to implement the INotificationDistributionType type to send messages via a third party provider

All works well until I have a user who is using a foreign language, some of the messages are being translated, but not all it seems very inconsistent

I have to tried to obtain the message using 

public bool Distribute(Notification notification, NotificationUserChanges userChanges)
{
	var message = notification.Message("Html");
}


and also tried running the request as the notification user (the target user who has a foreign language) which is not suggested ,but to test what happened 

Apis.Get<IUsers>().RunAsUser(notification.UserId, () =>
{
	var notificationType = PluginManager.Get<INotificationType>().Where(x => x.NotificationTypeId == notification.NotificationTypeId).FirstOrDefault();
	if (notificationType != null)
	{
		message = notificationType.GetMessage(notification.NotificationId, "Html");
	}
});


In both cases some notifications were ok, but others returned the english text 

One example is forum reply which has translations so for html_one as below but is returned in english

{0} replied to <a href="{1}" class="view-post">{2}</a>.

.‬{0}‪أجاب على  <a href="{1}" class="view-post">‬{2}‪</a>

Do you have any suggestions and should the initial example using "notification.Message("Html")" be expected to return the message text in the notification target users language?

Parents Reply Children
No Data