mirror of
https://github.com/mue/mue.git
synced 2026-07-27 02:31:06 +02:00
refactor(translations): mostly finish upgrading to i18n v2
This commit is contained in:
@@ -9,7 +9,7 @@ export default class Stats {
|
||||
if (achievement) {
|
||||
const { name } = getLocalisedAchievementData(achievement.id);
|
||||
toast.info(
|
||||
`🏆 ${variables.getMessage('modals.main.settings.sections.stats.achievement_unlocked', { name: name })}`,
|
||||
`🏆 ${variables.getMessage('settings:sections.stats.achievement_unlocked', { name: name })}`,
|
||||
{
|
||||
icon: false,
|
||||
closeButton: false,
|
||||
|
||||
@@ -8,10 +8,10 @@ function ClearModal({ modalClose, resetStats }) {
|
||||
<div className="smallModal">
|
||||
<div className="shareHeader">
|
||||
<span className="title">
|
||||
{variables.getMessage('modals.main.settings.sections.advanced.reset_modal.title')}
|
||||
{variables.getMessage('settings:sections.advanced.reset_modal.title')}
|
||||
</span>
|
||||
<Tooltip
|
||||
title={variables.getMessage('modals.main.settings.sections.advanced.reset_modal.cancel')}
|
||||
title={variables.getMessage('settings:sections.advanced.reset_modal.cancel')}
|
||||
>
|
||||
<div className="close" onClick={modalClose}>
|
||||
<MdClose />
|
||||
@@ -19,23 +19,23 @@ function ClearModal({ modalClose, resetStats }) {
|
||||
</Tooltip>
|
||||
</div>
|
||||
<span className="title">
|
||||
{variables.getMessage('modals.main.settings.sections.stats.clear_modal.question')}
|
||||
{variables.getMessage('settings:sections.stats.clear_modal.question')}
|
||||
</span>
|
||||
<span className="subtitle">
|
||||
{variables.getMessage('modals.main.settings.sections.stats.clear_modal.information')}
|
||||
{variables.getMessage('settings:sections.stats.clear_modal.information')}
|
||||
</span>
|
||||
<div className="resetFooter">
|
||||
<Button
|
||||
type="secondary"
|
||||
onClick={modalClose}
|
||||
icon={<MdClose />}
|
||||
label={variables.getMessage('modals.main.settings.sections.advanced.reset_modal.cancel')}
|
||||
label={variables.getMessage('settings:sections.advanced.reset_modal.cancel')}
|
||||
/>
|
||||
<Button
|
||||
type="settings"
|
||||
onClick={() => resetStats()}
|
||||
icon={<MdRestartAlt />}
|
||||
label={variables.getMessage('modals.main.settings.buttons.reset')}
|
||||
label={variables.getMessage('settings:buttons.reset')}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -78,7 +78,7 @@ const Stats = () => {
|
||||
</div>
|
||||
);
|
||||
|
||||
const STATS_SECTION = 'modals.main.settings.sections.stats';
|
||||
const STATS_SECTION = 'settings:sections.stats';
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -94,7 +94,7 @@ const Stats = () => {
|
||||
type="settings"
|
||||
onClick={() => setClearmodal(true)}
|
||||
icon={<MdRestartAlt />}
|
||||
label={variables.getMessage('modals.main.settings.buttons.reset')}
|
||||
label={variables.getMessage('settings:buttons.reset')}
|
||||
/>
|
||||
</CustomActions>
|
||||
</Header>
|
||||
|
||||
Reference in New Issue
Block a user