mirror of
https://github.com/mue/mue.git
synced 2026-07-26 18:21:27 +02:00
feat(translations): new translation system
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
import variables from 'modules/variables';
|
||||
import Checkbox from '../Checkbox';
|
||||
import Slider from '../Slider';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
|
||||
export default function ExperimentalSettings() {
|
||||
const { experimental } = window.language.modals.main.settings.sections;
|
||||
const getMessage = (languagecode, text) => variables.language.getMessage(languagecode, text);
|
||||
const languagecode = variables.languagecode;
|
||||
|
||||
return (
|
||||
<>
|
||||
<h2>{experimental.title}</h2>
|
||||
<p>{experimental.warning}</p>
|
||||
<Checkbox name='animations' text={window.language.modals.main.settings.sections.appearance.animations} element='.other'/>
|
||||
<h3>{experimental.developer}</h3>
|
||||
<h2>{getMessage(languagecode, 'modals.main.settings.sections.experimental.title')}</h2>
|
||||
<p>{getMessage(languagecode, 'modals.main.settings.sections.experimental.warning')}</p>
|
||||
<h3>{getMessage(languagecode, 'modals.main.settings.sections.experimental.developer')}</h3>
|
||||
<Checkbox name='debug' text='Debug hotkey (Ctrl + #)' element='.other'/>
|
||||
<Slider title='Debug timeout' name='debugtimeout' min='0' max='5000' default='0' step='100' display=' miliseconds' element='.other' />
|
||||
<br/>
|
||||
|
||||
Reference in New Issue
Block a user