types: fix translate typing
This commit is contained in:
@@ -5,7 +5,7 @@ import locale from '../../locale';
|
||||
export function createTranslate(name: string) {
|
||||
const prefix = camelize(name) + '.';
|
||||
|
||||
return function (path: string, ...args: any[]): string {
|
||||
return function (path: string, ...args: any[]): any {
|
||||
const messages = locale.messages();
|
||||
const message = get(messages, prefix + path) || get(messages, path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user