Skip to content

Commit 088ad33

Browse files
drafishAniket-Engg
authored andcommitted
patch i18n for remixApp and home
1 parent a2c45ee commit 088ad33

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

apps/remix-ide/src/app/tabs/locales/en/home.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"home.home": "Home",
23
"home.scamAlert": "Scam Alert",
34
"home.scamAlertText": "The only URL Remix uses is remix.ethereum.org",
45
"home.scamAlertText2": "Beware of online videos promoting \"liquidity front runner bots\"",
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"remixApp.scrollToSeeAllTabs": "Scroll to see all tabs",
33
"remixApp.alert": "Alert",
4-
"remixApp.ok": "OK"
4+
"remixApp.ok": "OK",
5+
"remixApp.enterText1": "Welcome to Remix IDE",
6+
"remixApp.enterText2": "In order to understand your needs better, we would like to know how you typically use Remix",
7+
"remixApp.enterText3": "Learning - discovering web3 development",
8+
"remixApp.enterText4": "Prototyping - trying out concepts and techniques",
9+
"remixApp.enterText5": "Developing projects - Remix as your main dev tool",
10+
"remixApp.enterText6": "Production - only deployments"
511
}

libs/remix-ui/app/src/lib/remix-app/components/modals/enter.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, {useContext, useEffect, useState} from 'react'
2+
import {FormattedMessage} from 'react-intl'
23
import {AppContext} from '../../context/context'
34
import {UsageTypes} from '../../types'
45
import { type } from 'os'
@@ -30,19 +31,19 @@ const EnterDialog = (props: EnterDialogProps) => {
3031
}}
3132
>
3233
<div className="modal-header d-flex flex-column">
33-
<h3 className='text-dark'>Welcome to Remix IDE</h3>
34+
<h3 className='text-dark'><FormattedMessage id="remixApp.enterText1" /></h3>
3435
<div className='d-flex flex-row pt-2'>
3536
<h6 className="modal-title text-dark" data-id={`EnterModalDialogModalTitle-react`}>
36-
In order to understand your needs better, we would like to know how you typically use Remix
37+
<FormattedMessage id="remixApp.enterText2" />
3738
</h6>
3839
<i className="text-dark fal fa-door-open text-center" style={{minWidth: "100px", fontSize: "xxx-large"}}></i>
3940
</div>
4041
</div>
4142
<div className="modal-body text-break remixModalBody d-flex flex-column p-3 justify-content-between" data-id={`EnterModalDialogModalBody-react`}>
42-
<button className="btn btn-secondary text-left" data-id="beginnerbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Beginner)}}>Learning - discovering web3 development</button>
43-
<button className="btn btn-secondary my-1 text-left" data-id="prototyperbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Prototyper)}}>Prototyping - trying out concepts and techniques</button>
44-
<button className="btn btn-secondary text-left" data-id="advanceUserbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Advance)}}>Developing projects - Remix as your main dev tool</button>
45-
<button className="btn btn-secondary mt-1 text-left" data-id="productionbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Production)}}>Production - only deployments</button>
43+
<button className="btn btn-secondary text-left" data-id="beginnerbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Beginner)}}><FormattedMessage id="remixApp.enterText3" /></button>
44+
<button className="btn btn-secondary my-1 text-left" data-id="prototyperbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Prototyper)}}><FormattedMessage id="remixApp.enterText4" /></button>
45+
<button className="btn btn-secondary text-left" data-id="advanceUserbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Advance)}}><FormattedMessage id="remixApp.enterText5" /></button>
46+
<button className="btn btn-secondary mt-1 text-left" data-id="productionbtn" style={{minWidth: "100px"}} onClick={() => {enterAs(UsageTypes.Production)}}><FormattedMessage id="remixApp.enterText6" /></button>
4647
</div>
4748
</div>
4849
</div>

libs/remix-ui/vertical-icons-panel/src/lib/components/Home.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import {CustomTooltip} from '@remix-ui/helper'
22
import React from 'react'
3+
import { FormattedMessage } from 'react-intl'
34
import BasicLogo from './BasicLogo'
45
interface HomeProps {
56
verticalIconPlugin: any
67
}
78

89
function Home({verticalIconPlugin}: HomeProps) {
910
return (
10-
<CustomTooltip placement="right" tooltipText={'Home'}>
11+
<CustomTooltip placement="right" tooltipText={<FormattedMessage id='home.home' />}>
1112
<div
1213
className="mt-2 my-1 remixui_homeIcon"
1314
onClick={async () => await verticalIconPlugin.activateHome()}

0 commit comments

Comments
 (0)