mirror of
https://github.com/flarum/framework.git
synced 2025-03-11 04:35:16 +08:00
Tweak translation keys, always use full keys
Makes them easier to grep when editing / removing. Refs #1750, #1788.
This commit is contained in:
parent
e7cdd497dd
commit
4cd48ac048
@ -112,11 +112,15 @@ export default {
|
|||||||
|
|
||||||
showDeletionAlert(type) {
|
showDeletionAlert(type) {
|
||||||
const { username, email } = this.data.attributes;
|
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({
|
app.alerts.show(new Alert({
|
||||||
type,
|
type,
|
||||||
children: app.translator.trans(
|
children: app.translator.trans(
|
||||||
`core.forum.user.delete_alert_${type}`, { username, email }
|
message, { username, email }
|
||||||
)
|
)
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user