File tree Expand file tree Collapse file tree 8 files changed +42
-16
lines changed Expand file tree Collapse file tree 8 files changed +42
-16
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ import { IErrors } from './types';
4
4
import authentication from './resources/authentication' ;
5
5
import signIn from './resources/signIn' ;
6
6
import signUp from './resources/signUp' ;
7
+ import passwordForgotten from './resources/passwordForgotten' ;
7
8
import general from './resources/general' ;
8
9
9
10
const codes : IErrors = {
10
11
authentication,
11
12
signIn,
12
13
signUp,
14
+ passwordForgotten,
13
15
general,
14
16
} ;
15
17
Original file line number Diff line number Diff line change 1
- import { II18n , IErrorRes , EHttpCode } from '../../types' ;
1
+ import { II18n , EHttpCode } from '../../types' ;
2
2
3
3
// Locales
4
4
import * as fr from './locales/fr.json' ;
5
5
import * as en from './locales/en.json' ;
6
6
7
7
const i18n : II18n = { fr, en } ;
8
8
9
- const authentication : IErrorRes = {
9
+ export default {
10
10
client : {
11
11
loginFailed : {
12
12
status : EHttpCode . UNAUTHORIZED ,
@@ -28,5 +28,3 @@ const authentication: IErrorRes = {
28
28
external : { } ,
29
29
i18n,
30
30
} ;
31
-
32
- export default authentication ;
Original file line number Diff line number Diff line change 1
- import { II18n , IErrorRes , EHttpCode } from '../../types' ;
1
+ import { II18n , EHttpCode } from '../../types' ;
2
2
3
3
// Locales
4
4
import * as fr from './locales/fr.json' ;
5
5
import * as en from './locales/en.json' ;
6
6
7
7
const i18n : II18n = { fr, en } ;
8
8
9
- const general : IErrorRes = {
9
+ export default {
10
10
client : { } ,
11
11
internal : {
12
12
unexpected : {
@@ -16,5 +16,3 @@ const general: IErrorRes = {
16
16
external : { } ,
17
17
i18n,
18
18
} ;
19
-
20
- export default general ;
Original file line number Diff line number Diff line change
1
+ import { II18n , EHttpCode } from '../../types' ;
2
+
3
+ // Locales
4
+ import * as fr from './locales/fr.json' ;
5
+ import * as en from './locales/en.json' ;
6
+
7
+ const i18n : II18n = { fr, en } ;
8
+
9
+ export default {
10
+ client : {
11
+ accountNotFound : {
12
+ status : EHttpCode . BAD_REQUEST ,
13
+ } ,
14
+ } ,
15
+ internal : { } ,
16
+ external : { } ,
17
+ i18n,
18
+ } ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "client" : {
3
+ "accountNotFound" : " Account not found"
4
+ },
5
+ "internal" : {},
6
+ "external" : {}
7
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "client" : {
3
+ "accountNotFound" : " Aucun compte trouvé"
4
+ },
5
+ "internal" : {},
6
+ "external" : {}
7
+ }
Original file line number Diff line number Diff line change 1
- import { II18n , IErrorRes , EHttpCode } from '../../types' ;
1
+ import { II18n , EHttpCode } from '../../types' ;
2
2
3
3
// Locales
4
4
import * as fr from './locales/fr.json' ;
5
5
import * as en from './locales/en.json' ;
6
6
7
7
const i18n : II18n = { fr, en } ;
8
8
9
- const signIn : IErrorRes = {
9
+ export default {
10
10
client : {
11
11
formInvalidEmail : {
12
12
status : EHttpCode . BAD_REQUEST ,
@@ -25,5 +25,3 @@ const signIn: IErrorRes = {
25
25
external : { } ,
26
26
i18n,
27
27
} ;
28
-
29
- export default signIn ;
Original file line number Diff line number Diff line change 1
- import { II18n , IErrorRes , EHttpCode } from '../../types' ;
1
+ import { II18n , EHttpCode } from '../../types' ;
2
2
3
3
// Locales
4
4
import * as fr from './locales/fr.json' ;
5
5
import * as en from './locales/en.json' ;
6
6
7
7
const i18n : II18n = { fr, en } ;
8
8
9
- const signUp : IErrorRes = {
9
+ export default {
10
10
client : {
11
11
formInvalidEmail : {
12
12
status : EHttpCode . BAD_REQUEST ,
@@ -25,5 +25,3 @@ const signUp: IErrorRes = {
25
25
external : { } ,
26
26
i18n,
27
27
} ;
28
-
29
- export default signUp ;
You can’t perform that action at this time.
0 commit comments