patch en locale messages for home-tab

pull/5370/head
drafish 1 year ago committed by Aniket
parent 3bdec3c80f
commit aed60b6bf4
  1. 9
      apps/remix-ide/src/app/tabs/locales/en/home.json
  2. 4
      libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx
  3. 2
      libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx
  4. 2
      libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx
  5. 3
      libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx

@ -47,7 +47,7 @@
"home.remixTwitterProfile": "Remix Twitter Profile", "home.remixTwitterProfile": "Remix Twitter Profile",
"home.remixLinkedinProfile": "Remix Linkedin Profile", "home.remixLinkedinProfile": "Remix Linkedin Profile",
"home.remixMediumPosts": "Remix Medium Posts", "home.remixMediumPosts": "Remix Medium Posts",
"home.remixGitterChannel": "Join us on Discord", "home.joinUsOnDiscord": "Join us on Discord",
"home.nativeIDE": "The Native IDE for Web3 Development.", "home.nativeIDE": "The Native IDE for Web3 Development.",
"home.website": "Website", "home.website": "Website",
"home.documentation": "Documentation", "home.documentation": "Documentation",
@ -57,7 +57,10 @@
"home.files": "Files", "home.files": "Files",
"home.newFile": "New File", "home.newFile": "New File",
"home.openFile": "Open File", "home.openFile": "Open File",
"home.connectToLocalhost": "Access File System", "home.accessFileSystem": "Access File System",
"home.loadFrom": "Load from", "home.loadFrom": "Load from",
"home.resources": "Resources" "home.resources": "Resources",
"home.connectToLocalhost": "Connect to Localhost",
"home.seeAllTutorials": "See all tutorials",
"home.maintainedByRemix": "Maintained by Remix"
} }

@ -203,11 +203,11 @@ function HomeTabFile({plugin}: HomeTabFileProps) {
placement={'top'} placement={'top'}
tooltipId="overlay-tooltip" tooltipId="overlay-tooltip"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={'Connect to Localhost'} tooltipText={<FormattedMessage id="home.connectToLocalhost" />}
tooltipTextClasses="border bg-light text-dark p-1 pr-3" tooltipTextClasses="border bg-light text-dark p-1 pr-3"
> >
<button className="btn p-2 border my-1" style={{width: 'fit-content'}} onClick={() => connectToLocalhost()}> <button className="btn p-2 border my-1" style={{width: 'fit-content'}} onClick={() => connectToLocalhost()}>
<FormattedMessage id="home.connectToLocalhost" /> <FormattedMessage id="home.accessFileSystem" />
</button> </button>
</CustomTooltip> </CustomTooltip>
</div> </div>

@ -56,7 +56,7 @@ function HomeTabLearn({plugin}: HomeTabLearnProps) {
placement={'top'} placement={'top'}
tooltipId="overlay-tooltip" tooltipId="overlay-tooltip"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={'See all tutorials'} tooltipText={<FormattedMessage id="home.seeAllTutorials" />}
tooltipTextClasses="border bg-light text-dark p-1 pr-3" tooltipTextClasses="border bg-light text-dark p-1 pr-3"
> >
<button <button

@ -129,7 +129,7 @@ function HomeTabTitle() {
placement={'top'} placement={'top'}
tooltipId="overlay-tooltip" tooltipId="overlay-tooltip"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={<FormattedMessage id="home.remixGitterChannel" />} tooltipText={<FormattedMessage id="home.joinUsOnDiscord" />}
tooltipTextClasses="border bg-light text-dark p-1 pr-3" tooltipTextClasses="border bg-light text-dark p-1 pr-3"
> >
<button <button

@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */
import React, {useContext} from 'react' import React, {useContext} from 'react'
import {FormattedMessage} from 'react-intl'
import {ThemeContext} from '../themeContext' import {ThemeContext} from '../themeContext'
import {CustomTooltip} from '@remix-ui/helper' import {CustomTooltip} from '@remix-ui/helper'
interface PluginButtonProps { interface PluginButtonProps {
@ -30,7 +31,7 @@ function PluginButton({imgPath, envID, envText, callback, l2, description, remix
</button> </button>
{l2 && <label className="bg-light mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_l2Label">L2</label>} {l2 && <label className="bg-light mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_l2Label">L2</label>}
{remixMaintained && ( {remixMaintained && (
<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-by-remix" tooltipText={'Maintained by Remix'}> <CustomTooltip placement="bottom" tooltipId="overlay-tooltip-by-remix" tooltipText={<FormattedMessage id="home.maintainedByRemix" />}>
<i className="bg-light text-success mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel fas fa-check"></i> <i className="bg-light text-success mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel fas fa-check"></i>
</CustomTooltip> </CustomTooltip>
)} )}

Loading…
Cancel
Save