0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

add lang property to brewRender and metadataEditor

This commit is contained in:
Gazook89
2022-09-21 13:25:40 -05:00
parent bce7cf41af
commit 4dc1a60934
2 changed files with 5 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ const BrewRenderer = createClass({
style : '',
renderer : 'legacy',
theme : '5ePHB',
lang : '',
errors : []
};
},
@@ -183,6 +184,8 @@ const BrewRenderer = createClass({
//Also render dummy page while iframe is mounting.
const rendererPath = this.props.renderer == 'V3' ? 'V3' : 'Legacy';
const themePath = this.props.theme ?? '5ePHB';
const language = this.props.lang;
console.log(language);
const baseThemePath = Themes[rendererPath][themePath].baseTheme;
return (
@@ -217,7 +220,7 @@ const BrewRenderer = createClass({
&&
<>
{this.renderStyle()}
<div className='pages' ref='pages'>
<div className='pages' ref='pages' lang={language}>
{this.renderPages()}
</div>
</>

View File

@@ -28,7 +28,7 @@ const MetadataEditor = createClass({
systems : [],
renderer : 'legacy',
theme : '5ePHB',
lang : 'en'
lang : ''
},
onChange : ()=>{}
};