mirror of
https://github.com/mue/mue.git
synced 2026-07-15 21:13:54 +02:00
fix(translations): fix issues caused by refactor
This commit is contained in:
@@ -16,13 +16,7 @@ export default function KeybindInput(props) {
|
||||
<MdCancel />
|
||||
</button>
|
||||
);
|
||||
} else if (
|
||||
value ===
|
||||
variables.getMessage(
|
||||
variables.languagecode,
|
||||
'modals.main.settings.sections.keybinds.recording',
|
||||
)
|
||||
) {
|
||||
} else if (value === variables.getMessage('modals.main.settings.sections.keybinds.recording')) {
|
||||
return (
|
||||
<button className="cleanButton" onClick={() => props.action('cancel', props.setting)}>
|
||||
<MdCancel />
|
||||
|
||||
@@ -25,16 +25,10 @@ export default function ResetModal({ modalClose }) {
|
||||
</Tooltip>
|
||||
</div>
|
||||
<span className="title">
|
||||
{variables.getMessage(
|
||||
variables.languagecode,
|
||||
'modals.main.settings.sections.advanced.reset_modal.question',
|
||||
)}
|
||||
{variables.getMessage('modals.main.settings.sections.advanced.reset_modal.question')}
|
||||
</span>
|
||||
<span className="subtitle">
|
||||
{variables.getMessage(
|
||||
variables.languagecode,
|
||||
'modals.main.settings.sections.advanced.reset_modal.information',
|
||||
)}
|
||||
{variables.getMessage('modals.main.settings.sections.advanced.reset_modal.information')}
|
||||
</span>
|
||||
<div className="resetFooter">
|
||||
<button className="textButton" onClick={modalClose}>
|
||||
|
||||
@@ -66,7 +66,7 @@ export default class SliderComponent extends PureComponent {
|
||||
<span>{Number(this.state.value)}</span>
|
||||
<span className="link" onClick={this.resetItem}>
|
||||
<MdRefresh />
|
||||
{variables.getMessage(variables.languagecode, 'modals.main.settings.buttons.reset')}
|
||||
{variables.getMessage('modals.main.settings.buttons.reset')}
|
||||
</span>
|
||||
</span>
|
||||
<Slider
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user