translate main bar text

This commit is contained in:
SpikeHD
2022-05-15 22:06:43 -07:00
parent 167e13c941
commit 0cfb73ac49
2 changed files with 6 additions and 3 deletions

View File

@@ -5,7 +5,9 @@
"launch_button": "Launch", "launch_button": "Launch",
"gc_enable": "Connect via Grasscutter", "gc_enable": "Connect via Grasscutter",
"ip_placeholder": "Server Address...", "ip_placeholder": "Server Address...",
"port_placeholder": "Port..." "port_placeholder": "Port...",
"files_downloading": "Files Downloading: ",
"files_extracting": "Files Extracting: "
}, },
"options": { "options": {
"game_exec": "Set Game Executable", "game_exec": "Set Game Executable",

View File

@@ -1,5 +1,6 @@
import React from 'react' import React from 'react'
import DownloadHandler from '../../../utils/download' import DownloadHandler from '../../../utils/download'
import Tr from '../../../utils/language'
import './ProgressBar.css' import './ProgressBar.css'
interface IProps { interface IProps {
@@ -67,9 +68,9 @@ export default class ProgressBar extends React.Component<IProps, IState> {
</div> </div>
<div className="MainProgressText"> <div className="MainProgressText">
Files Downloading: {this.state.files} ({this.state.speed}) <Tr text="main.files_downloading" /> {this.state.files} ({this.state.speed})
<br /> <br />
Files Extracting: {this.state.extracting} <Tr text="main.files_extracting" /> {this.state.extracting}
</div> </div>
</div> </div>
) )