Made texts translatable

Texts will be translated now
This commit is contained in:
TigerxWood 2020-05-28 23:47:18 +03:00 committed by Sean Yesmunt
parent a89efd981b
commit 4fbc4458e7

View file

@ -170,24 +170,24 @@ export default class SplashScreen extends React.PureComponent<Props, State> {
this.setState({ waitingForSync: this.state.waitingForSync + UPDATE_INTERVAL / 1000 }); this.setState({ waitingForSync: this.state.waitingForSync + UPDATE_INTERVAL / 1000 });
if (this.state.waitingForSync < MAX_SYNC_WAIT) { if (this.state.waitingForSync < MAX_SYNC_WAIT) {
this.setState({ this.setState({
message: 'Loading Wallet', message: __('Loading Wallet'),
details: 'Updating wallet data...', details: __('Updating wallet data...'),
}); });
} else { } else {
this.setState({ this.setState({
message: 'Loading Wallet', message: __('Loading Wallet'),
details: ( details: (
<React.Fragment> <React.Fragment>
<div>Large account history</div> <div>__('Large account history')</div>
<div>Please wait...</div> <div>__('Please wait...')</div>
</React.Fragment> </React.Fragment>
), ),
}); });
} }
} else if (wallet && !status.is_running && startupStatus.database) { } else if (wallet && !status.is_running && startupStatus.database) {
this.setState({ this.setState({
message: 'Finalizing', message: __('Finalizing'),
details: 'Almost ready...', details: __('Almost ready...'),
}); });
} }
@ -307,7 +307,7 @@ export default class SplashScreen extends React.PureComponent<Props, State> {
<I18nMessage <I18nMessage
tokens={{ tokens={{
help_link: ( help_link: (
<Button button="link" href="https://lbry.com/faq/startup-troubleshooting" label="this link" /> <Button button="link" href="https://lbry.com/faq/startup-troubleshooting" label={__("this link")} />
), ),
}} }}
> >