diff options
Diffstat (limited to 'ui/src/components')
-rw-r--r-- | ui/src/components/communities.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/community-form.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/community.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/inbox.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/login.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/main.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/modlog.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/post-form.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/post.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/search.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/setup.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/user.tsx | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/ui/src/components/communities.tsx b/ui/src/components/communities.tsx index f10dd10d..49b982dc 100644 --- a/ui/src/components/communities.tsx +++ b/ui/src/components/communities.tsx @@ -167,7 +167,7 @@ export class Communities extends Component<any, CommunitiesState> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.ListCommunities) { let res: ListCommunitiesResponse = msg; diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 5db2fcb6..b039fb4d 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -155,7 +155,7 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt let op: UserOperation = msgOp(msg); console.log(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); this.state.loading = false; this.setState(this.state); return; diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index 920b2eae..480b909e 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -194,7 +194,7 @@ export class Community extends Component<any, State> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.GetCommunity) { let res: GetCommunityResponse = msg; diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index 909fe447..c9f46b36 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -166,7 +166,7 @@ export class Inbox extends Component<any, InboxState> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.GetReplies || op == UserOperation.MarkAllAsRead) { let res: GetRepliesResponse = msg; diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index 8114be01..e7af89ca 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -184,7 +184,7 @@ export class Login extends Component<any, State> { parseMessage(msg: any) { let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); this.state = this.emptyState; this.setState(this.state); return; diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 88f657c7..91d56cc0 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -382,7 +382,7 @@ export class Main extends Component<any, MainState> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.GetFollowedCommunities) { let res: GetFollowedCommunitiesResponse = msg; diff --git a/ui/src/components/modlog.tsx b/ui/src/components/modlog.tsx index b8e58461..ba1fe5a2 100644 --- a/ui/src/components/modlog.tsx +++ b/ui/src/components/modlog.tsx @@ -223,7 +223,7 @@ export class Modlog extends Component<any, ModlogState> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.GetModlog) { let res: GetModlogResponse = msg; diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index bfc861bd..8aa7a5ea 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -203,7 +203,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> { parseMessage(msg: any) { let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); this.state.loading = false; this.setState(this.state); return; diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index f582f0d7..b0204d38 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -244,7 +244,7 @@ export class Post extends Component<any, PostState> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.GetPost) { let res: GetPostResponse = msg; diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index ae29fd0b..01122fd4 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -246,7 +246,7 @@ export class Search extends Component<any, SearchState> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.Search) { let res: SearchResponse = msg; diff --git a/ui/src/components/setup.tsx b/ui/src/components/setup.tsx index fbfb2e13..f11dc14e 100644 --- a/ui/src/components/setup.tsx +++ b/ui/src/components/setup.tsx @@ -135,7 +135,7 @@ export class Setup extends Component<any, State> { parseMessage(msg: any) { let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); this.state.userLoading = false; this.setState(this.state); return; diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index f0034a47..c6a70560 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -333,7 +333,7 @@ export class User extends Component<any, UserState> { console.log(msg); let op: UserOperation = msgOp(msg); if (msg.error) { - alert(msg.error); + alert(i18n.t(msg.error)); return; } else if (op == UserOperation.GetUserDetails) { let res: UserDetailsResponse = msg; |