mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Remove app.trans
shortcut
Use `app.translator.trans` instead.
This commit is contained in:
parent
3894e71f15
commit
835e9e5d86
|
@ -327,16 +327,4 @@ export default class App {
|
|||
|
||||
return prefix + url + (queryString ? '?' + queryString : '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Shortcut to translate the given key.
|
||||
*
|
||||
* @param {String} key
|
||||
* @param {Object} input
|
||||
* @return {String}
|
||||
* @public
|
||||
*/
|
||||
trans(key, input) {
|
||||
return this.translator.trans(key, input);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user