feat(translations): first half of 7.0 translation support

This commit is contained in:
David Ralph
2022-06-03 21:18:47 +01:00
parent cd9eed0c81
commit 109918a2c6
12 changed files with 108 additions and 41 deletions

View File

@@ -35,13 +35,16 @@ const downloadImage = async (info) => {
variables.stats.postEvent('feature', 'Background download');
};
const getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
export default function PhotoInformation({ info, url, api }) {
const [width, setWidth] = useState(0);
const [height, setHeight] = useState(0);
const [usePhotoMap, setPhotoMap] = useState(false);
const [setMapIcon] = useState(true);
const [showExtraInfo, setshowExtraInfo] = useState(false);
const [showOld, setShowOld] = useState(true);
//const [showOld, setShowOld] = useState(true);
const [other, setOther] = useState(false);
const [shareModal, openShareModal] = useState(false);
@@ -268,13 +271,13 @@ export default function PhotoInformation({ info, url, api }) {
{showExtraInfo || other ? (
<>
<div className="concept-buttons">
<Tooltip title="Share" key="share">
<Tooltip title={getMessage('widgets.quote.share')} key="share">
<Share onClick={() => openShareModal(true)} />
</Tooltip>
<Tooltip title="Favourite" key="favourite">
<Tooltip title={getMessage('widgets.quote.favourite')} key="favourite">
<Favourite />
</Tooltip>
<Tooltip title="Download" key="download">
<Tooltip title={getMessage('widgets.background.download')} key="download">
<Download onClick={() => downloadImage(info)} />
</Tooltip>
</div>