feat(translations): first half of 7.0 translation support

This commit is contained in:
David Ralph
2022-06-03 21:18:47 +01:00
parent cd9eed0c81
commit 109918a2c6
12 changed files with 108 additions and 41 deletions

View File

@@ -49,9 +49,19 @@ export default class ErrorBoundary extends PureComponent {
</span>
<div className="buttonsRow">
{this.state.showReport ? (
<button onClick={() => this.reportError()}>Send Error Report</button>
<button onClick={() => this.reportError()}>
{variables.language.getMessage(
variables.languagecode,
'modals.main.error_boundary.report_error',
)}
</button>
) : (
<span className="subtitle">Sent!</span>
<span className="subtitle">
{variables.language.getMessage(
variables.languagecode,
'modals.main.error_boundary.sent',
)}
</span>
)}
<button className="refresh" onClick={() => window.location.reload()}>
{variables.language.getMessage(