Change how the "(legacy)" text is added

Should allow this to actually be translated properly
This commit is contained in:
Thomas Weber committed 2020-12-12 12:06:16 -06:00
1 parent b9946f1cea
commit fc7af08748
1 file changed
+19 -9
+19 -9
View File
@@ -552,16 +552,26 @@ class MenuBar extends React.Component {
</React.Fragment>
)}
<MenuItem onClick={this.getSaveToComputerHandler(downloadProject)}>
<FormattedMessage
defaultMessage="Save to your computer"
description="Menu bar item for downloading a project to your computer" // eslint-disable-line max-len
id="gui.menuBar.downloadToComputer"
/>
{extended.available && (
{extended.available ? (
<FormattedMessage
defaultMessage=" (legacy)"
description="Text that appears after 'Save project to your computer' on legacy button." // eslint-disable-line max-len
id="tw.menuBar.downloadToComputerLegacyAppend"
defaultMessage="{saveToYourComputer} (legacy)"
description="Wrapper around 'Save to your computer' when a more modern API is available" // eslint-disable-line max-len
id="tw.menuBar.legacyDownloadToComputer"
values={{
saveToYourComputer: (
<FormattedMessage
defaultMessage="Save to your computer"
description="Menu bar item for downloading a project to your computer" // eslint-disable-line max-len
id="gui.menuBar.downloadToComputer"
/>
)
}}
/>
) : (
<FormattedMessage
defaultMessage="Save to your computer"
description="Menu bar item for downloading a project to your computer" // eslint-disable-line max-len
id="gui.menuBar.downloadToComputer"
/>
)}
</MenuItem>