Skip to content

Commit

Permalink
Merge pull request #3296 from 5e-Cleric/lang-fix-on-print
Browse files Browse the repository at this point in the history
Fix lang on print
  • Loading branch information
calculuschild authored Feb 22, 2024
2 parents 8f40023 + fe3a5f4 commit 3e76307
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions client/homebrew/pages/printPage/printPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const PrintPage = createClass({
brew : {
text : '',
style : '',
renderer : 'legacy'
renderer : 'legacy',
lang : ''
}
};
},
Expand All @@ -32,7 +33,8 @@ const PrintPage = createClass({
text : this.props.brew.text || '',
style : this.props.brew.style || undefined,
renderer : this.props.brew.renderer || 'legacy',
theme : this.props.brew.theme || '5ePHB'
theme : this.props.brew.theme || '5ePHB',
lang : this.props.brew.lang || 'en'
}
};
},
Expand All @@ -49,7 +51,8 @@ const PrintPage = createClass({
text : brewStorage,
style : styleStorage,
renderer : metaStorage?.renderer || 'legacy',
theme : metaStorage?.theme || '5ePHB'
theme : metaStorage?.theme || '5ePHB',
lang : metaStorage?.lang || 'en'
}
};
});
Expand Down Expand Up @@ -100,7 +103,7 @@ const PrintPage = createClass({
<link href={`/themes/${rendererPath}/${themePath}/style.css`} rel='stylesheet'/>
{/* Apply CSS from Style tab */}
{this.renderStyle()}
<div className='pages' ref='pages'>
<div className='pages' ref='pages' lang={this.state.brew.lang}>
{this.renderPages()}
</div>
</div>;
Expand Down

0 comments on commit 3e76307

Please sign in to comment.