Tweak translation keys, always use full keys

Makes them easier to grep when editing / removing.

Refs #1750, #1788.
This commit is contained in:
Franz Liedke 2019-08-14 08:28:57 +02:00 committed by Daniël Klabbers
parent 82480457ce
commit bbeacc0299

View File

@ -112,11 +112,15 @@ export default {
showDeletionAlert(type) {
const { username, email } = this.data.attributes;
const message = {
success: 'core.forum.user_controls.delete_success_message',
error: 'core.forum.user_controls.delete_error_message',
}[type];
app.alerts.show(new Alert({
type,
children: app.translator.trans(
`core.forum.user.delete_alert_${type}`, { username, email }
message, { username, email }
)
}));
},