fix(translations): fix issues caused by refactor

This commit is contained in:
David Ralph
2022-08-26 11:44:24 +01:00
parent 2c2acbba46
commit b8f2b7fb1f
13 changed files with 25 additions and 65 deletions

View File

@@ -44,13 +44,9 @@ export default class Changelog extends PureComponent {
title: data.title,
date,
image: data.featured_image || null,
author: variables.getMessage(
variables.languagecode,
'modals.main.settings.sections.changelog.by',
{
author: data.authors.join(', '),
},
),
author: variables.getMessage('modals.main.settings.sections.changelog.by', {
author: data.authors.join(', '),
}),
content: data.markdown,
});

View File

@@ -147,13 +147,9 @@ export default class Stats extends PureComponent {
</span>
<br />
<span className="subtitle">
{variables.getMessage(
variables.languagecode,
'modals.main.settings.sections.stats.unlocked',
{
count: this.getUnlockedCount() + '/' + this.state.achievements.length,
},
)}
{variables.getMessage('modals.main.settings.sections.stats.unlocked', {
count: this.getUnlockedCount() + '/' + this.state.achievements.length,
})}
</span>
<div className="achievements">
{this.state.achievements.map((achievement, index) => {