mirror of
https://github.com/mue/mue.git
synced 2026-07-13 20:13:47 +02:00
feat(translations): add 7.0 support for most settings and some of marketplace
This commit is contained in:
@@ -14,7 +14,7 @@ export default function ShareModal({ modalClose, data }) {
|
||||
|
||||
const copyLink = () => {
|
||||
navigator.clipboard.writeText(data);
|
||||
toast('Link copied!');
|
||||
toast(getMessage('modals.share.copy_link'));
|
||||
};
|
||||
|
||||
if (!data.data) {
|
||||
@@ -24,7 +24,7 @@ export default function ShareModal({ modalClose, data }) {
|
||||
return (
|
||||
<div className="smallModal">
|
||||
<div className="shareHeader">
|
||||
<span className="title">Share</span>
|
||||
<span className="title">{getMessage('widgets.quote.share')}</span>
|
||||
<Tooltip title="Close">
|
||||
<div className="close" onClick={modalClose}>
|
||||
<MdClose />
|
||||
@@ -100,7 +100,7 @@ export default function ShareModal({ modalClose, data }) {
|
||||
</div>
|
||||
<div className="copy">
|
||||
<input type="text" value={data} className="left field" readOnly />
|
||||
<Tooltip title="Copy link" placement="top">
|
||||
<Tooltip title={getMessage('modals.share.copy_link')} placement="top">
|
||||
<button onClick={() => copyLink()}>
|
||||
<MdContentCopy />
|
||||
</button>
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
import variables from 'modules/variables';
|
||||
import { useState } from 'react';
|
||||
import { useFloating, flip, offset, shift } from '@floating-ui/react-dom';
|
||||
import { MdClose, MdInfo, MdOpenInNew } from 'react-icons/md';
|
||||
import './tooltip.scss';
|
||||
import Tooltip from './/Tooltip';
|
||||
import Tooltip from './Tooltip';
|
||||
|
||||
import './tooltip.scss';
|
||||
|
||||
export default function InfoTooltip({ title, style, placement, subtitle }) {
|
||||
const getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
|
||||
|
||||
export default function InfoTooltip({ children, title, style, placement, subtitle }) {
|
||||
const [showTooltip, setShowTooltip] = useState(false);
|
||||
const { x, y, reference, floating, strategy } = useFloating({
|
||||
placement: placement || 'top-start',
|
||||
@@ -34,7 +38,7 @@ export default function InfoTooltip({ children, title, style, placement, subtitl
|
||||
</div>
|
||||
<span className="subtitle">{subtitle}</span>
|
||||
<span className="link">
|
||||
Open Knowledgebase <MdOpenInNew />
|
||||
{getMessage('modals.main.settings.open_knowledgebase')} <MdOpenInNew />
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user