Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat-trans
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenway
chat-trans
Commits
01ffd620
Commit
01ffd620
authored
Sep 14, 2023
by
chenway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ChatTrans.js
parent
4b8c3bbe
Pipeline
#160485
passed with stages
in 1 minute 38 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ChatTrans.js
src/Components/ChatTrans.js
+4
-4
No files found.
src/Components/ChatTrans.js
View file @
01ffd620
...
@@ -10,8 +10,8 @@ import {
...
@@ -10,8 +10,8 @@ import {
import
io
from
"socket.io-client"
;
import
io
from
"socket.io-client"
;
import
"../App.css"
;
import
"../App.css"
;
const
url
=
'https://staging.strk-ai-support.ngrok.app/'
//
const url = 'https://staging.strk-ai-support.ngrok.app/'
//
const url = "http://localhost:8000";
const
url
=
"http://localhost:8000"
;
const
socket
=
io
(
url
,
{
const
socket
=
io
(
url
,
{
extraHeaders
:
{
extraHeaders
:
{
...
@@ -21,7 +21,7 @@ const socket = io(url, {
...
@@ -21,7 +21,7 @@ const socket = io(url, {
function
ChatTrans
()
{
function
ChatTrans
()
{
const
[
languageSupport
,
setLanguageSupport
]
=
useState
(
"English"
);
const
[
languageSupport
,
setLanguageSupport
]
=
useState
(
"English"
);
const
[
languageUser
,
setLanguageUser
]
=
useState
(
"Simpl
e
Chinese"
);
const
[
languageUser
,
setLanguageUser
]
=
useState
(
"Simpl
ified
Chinese"
);
const
[
userMessage
,
setUserMessage
]
=
useState
(
""
);
const
[
userMessage
,
setUserMessage
]
=
useState
(
""
);
const
[
supportMessage
,
setSupportMessage
]
=
useState
(
""
);
const
[
supportMessage
,
setSupportMessage
]
=
useState
(
""
);
const
[
supportName
,
setSupportName
]
=
useState
(
""
);
const
[
supportName
,
setSupportName
]
=
useState
(
""
);
...
@@ -158,7 +158,7 @@ function ChatTrans() {
...
@@ -158,7 +158,7 @@ function ChatTrans() {
>
>
<
option
value
=
"Simplified Chinese"
>
Simplified
Chinese
<
/option
>
<
option
value
=
"Simplified Chinese"
>
Simplified
Chinese
<
/option
>
<
option
value
=
"Traditional Chinese"
>
Traditional
Chinese
<
/option
>
<
option
value
=
"Traditional Chinese"
>
Traditional
Chinese
<
/option
>
<
option
value
=
"Italian
o"
>
Italiano
<
/option
>
<
option
value
=
"Italian
"
>
Italian
<
/option
>
<
option
value
=
"German"
>
German
<
/option
>
<
option
value
=
"German"
>
German
<
/option
>
<
option
value
=
"Japanese"
>
Japanese
<
/option
>
<
option
value
=
"Japanese"
>
Japanese
<
/option
>
<
option
value
=
"French"
>
French
<
/option
>
<
option
value
=
"French"
>
French
<
/option
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment