mirror of
https://github.com/mue/mue.git
synced 2026-07-21 16:04:22 +02:00
fix: all settings tabs with translations and add quote author link setting
This commit is contained in:
@@ -90,10 +90,13 @@ export default class Quote extends React.PureComponent {
|
||||
return this.doOffline();
|
||||
}
|
||||
|
||||
let authorlink = `https://${this.props.languagecode.split('-')[0]}.wikipedia.org/wiki/${data.author.split(' ').join('_')}`;
|
||||
if (localStorage.getItem('authorLink') === 'false') authorLink = null;
|
||||
|
||||
this.setState({
|
||||
quote: '"' + data.quote + '"',
|
||||
author: data.author,
|
||||
authorlink: `https://${this.props.languagecode}.wikipedia.org/wiki/${data.author.split(' ').join('_')}`
|
||||
authorlink: authorlink
|
||||
});
|
||||
} catch (e) {
|
||||
// ..and if that fails we load one locally
|
||||
|
||||
Reference in New Issue
Block a user