mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
node no comments
This commit is contained in:
parent
b4d7bd2c8a
commit
96bdbb0e04
11 changed files with 103 additions and 61 deletions
5
src/utils/trans.ts
Normal file
5
src/utils/trans.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { ERRORS, ERROR_LITERAL } from '~/constants/errors';
|
||||
import { ValueOf } from '~/redux/types';
|
||||
|
||||
export const t = (string: ValueOf<typeof ERRORS>): ValueOf<typeof ERROR_LITERAL> =>
|
||||
ERROR_LITERAL[string] || string;
|
Loading…
Add table
Add a link
Reference in a new issue