My first guess is that you haven’t defined the Notification type and throws an undefined error somewhere:
Guess #2 is that the I18n text hasn’t been defined in client.en.yml.
Depending on what you want to share with the user, I’ve found it’s sometimes better to send a PM and then spell out what happened in more detail.
PostCreator.create(
Discourse.system_user,
target_usernames: new_user.username,
archetype: Archetype.private_message,
subtype: TopicSubtype.system_message,
title: I18n.t('translations.location'}),
raw: I18n.t('translations.location'})
)
Edit: Just realized there’s a custom notification type (14) which you are using. So #1 is out.