mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 06:33:10 +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
82480457ce
commit
bbeacc0299
@ -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 }
|
||||
)
|
||||
}));
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user