File tree Expand file tree Collapse file tree 4 files changed +39
-0
lines changed Expand file tree Collapse file tree 4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ import { IErrors } from './types';
2
2
3
3
// Resources
4
4
import authentication from './resources/authentication' ;
5
+ import signIn from './resources/signIn' ;
5
6
import general from './resources/general' ;
6
7
7
8
const codes : IErrors = {
8
9
authentication,
10
+ signIn,
9
11
general,
10
12
} ;
11
13
Original file line number Diff line number Diff line change
1
+ import { II18n , IErrorRes , EHttpCode } from '../../types' ;
2
+ import * as fr_FR from './locales/fr_FR.json' ;
3
+ import * as en_US from './locales/en_US.json' ;
4
+
5
+ const i18n : II18n = { fr_FR, en_US } ;
6
+
7
+ const authentication : IErrorRes = {
8
+ client : {
9
+ formInvalidEmail : {
10
+ status : EHttpCode . BAD_REQUEST ,
11
+ } ,
12
+ formInvalidPassword : {
13
+ status : EHttpCode . BAD_REQUEST ,
14
+ } ,
15
+ } ,
16
+ internal : { } ,
17
+ external : { } ,
18
+ i18n,
19
+ } ;
20
+
21
+ export default authentication ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "client" : {
3
+ "formInvalidEmail" : " Invalid email" ,
4
+ "formInvalidPassword" : " Invalid password"
5
+ },
6
+ "internal" : {},
7
+ "external" : {}
8
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "client" : {
3
+ "formInvalidEmail" : " Email invalide" ,
4
+ "formInvalidPassword" : " Mot de passe invalide"
5
+ },
6
+ "internal" : {},
7
+ "external" : {}
8
+ }
You can’t perform that action at this time.
0 commit comments