How to use the react-intl-universal.get function in react-intl-universal

To help you get started, we’ve selected a few react-intl-universal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LoopringSecondary / circulr / src / components / tickers / ListTokenTickers.js View on Github external
function ListTokenTickers(props) {
  const {tickersOfSource:list,dispatch,token,tickers} = props;
  const tickersFm = new TickersFm(list);
  const listedTickers = tickersFm.getTickersBySymbol(token);
  const gotoTrade = (item)=>{
    routeActions.gotoPath(`/trade/${item.market}`)
  }
  console.log('ListTokenTickers',tickers);
  console.log('listedTickers',listedTickers);
  return (
    <div>
        <div>
            <div>
                <h4>{intl.get('ticker_list.title_loopring_tickers')}</h4>
            </div>
            
              <div style="{{minHeight:'65px'}}">
                  {
                    listedTickers.map((item,index)=&gt;{
                      const tickerFm = new TickerFm(item)
                      return (
                        <div>
                            <ul>
                                <li><h3>{item.market}</h3></li>
                                <li><small>{intl.get('ticker.price')}</small><span>{tickerFm.getLast()}</span></li>
                                <li><small>{intl.get('ticker.change')}</small><span>{tickerFm.getChange()}</span></li>
                            </ul>
                            <button>{intl.get('common.trade')} {token}</button>
                        </div>
                      )</div></div></div>
github LoopringSecondary / circulr / src / components / transactions / ListDefault.js View on Github external
{
                      types.map((item, index) =&gt;
                        {item.label}
                      )
                    }
                  
                
        
      
      <div style="{{height:">
        <div>
          
            
              {
                list.items.map((item, index) =&gt; {
                  const txFm = new TxFm(item);
                  const actions = {
                    gotoDetail: () =&gt; props.dispatch({type: 'layers/showLayer', payload: {id: 'txDetail', tx: item}}),
                    toResend:() =&gt; resendTx(item),
                    toCancel: () =&gt; cancelTx(item)<table>
              <thead>
              <tr>
                <th>{intl.get('tx.type')}</th>
                <th>{intl.get('tx.gas')}</th>
                <th>{intl.get('tx.block')}</th>
                <th>{intl.get('tx.nonce')}</th>
                <th>{intl.get('tx.txHash')}</th>
                <th>{intl.get('tx.created')}</th>
                <th>{intl.get('tx.status')}</th>
              </tr>
              </thead>
              <tbody></tbody></table></div></div>
github LoopringSecondary / circulr / src / components / fills / Detail.js View on Github external
}
        
        {!loading &amp;&amp;  !ring &amp;&amp;
          <div>
            <h1>{intl.get('common.list.no_data')}</h1>
          </div>
        }
      
    )
  }
}
github elasticpath / react-pwa-reference-storefront / app / src / containers / PurchaseReceiptPage.tsx View on Github external
const PurchaseReceiptPage = (props: RouteComponentProps) =&gt; {
  const { location, history } = props;

  const handleReorderAllProducts = () =&gt; {
    history.push('/mybag');
  };

  const itemDetailLink = '/itemdetail';

  return (
    <div>
      <div style="{{">
        <div>
          <h2>
            {intl.get('order-processed-message')}
          </h2>
          
        </div>
      </div>
    </div>
  );
};
github LoopringSecondary / circulr / src / components / account / unlock / UnlockByPrivateKey.js View on Github external
unlock = () => {
    const {privateKey} = this.state;
    if(this.isValidPrivateKey(privateKey)){
      this.props.dispatch({type:"wallet/unlockPrivateKeyWallet",payload:{privateKey}});
      Notification.open({type:'success',message:intl.get('notifications.title.unlock_suc')});
      this.props.dispatch({type: 'sockets/unlocked'})
      routeActions.gotoPath('/wallet');
      this.props.dispatch({type:'layers/hideLayer', payload:{id:'unlock'}})
    }else if(privateKey){
      Notification.open({type:'error',message:intl.get('notifications.title.unlock_fail'),description:intl.get('key.error_private_tip')})
    }else{
      Notification.open({type:'error',message:intl.get('notifications.title.unlock_fail'),description:intl.get('key.lack_private_tip')})
    }
  };
github LoopringSecondary / circulr / src / components / orders / ListOrderBook.js View on Github external
})
    }
  }

  const isIncresse = () =&gt; {
    if(trades.length===0 || trades.length ===1){
      return true
    }else {
      return trades[0].price &gt;= trades[1].price
    }
  };
  return (
    <div>
	    <div style="{{height:&quot;100vh&quot;}}">
	    	<div>
	    	    <h4>{intl.get('order_list.order_book')}</h4>
	    	</div>
	    	<div style="{{height:&quot;-webkit-calc(100%">
    	    	    <div style="{{">
                  {trades.length &gt;0 &amp;&amp; isIncresse() &amp;&amp;	<div>{trades[0] &amp;&amp; trades[0].price}<span><i></i></span></div>}
                  {trades.length &gt;0 &amp;&amp; !isIncresse() &amp;&amp;	<div>{trades[0] &amp;&amp; trades[0].price}<span><i></i></span></div>}
                </div>
    	        <ul>
	    	            <li>
			    	        <span>{intl.get('order.price')} {tokens.right}</span>
			    	        <span style="{{textAlign:'right'}}">{intl.get('order.amount')} {tokens.left} </span>
			    	        <span style="{{textAlign:'right'}}">{intl.get('order.LRCFee')}</span>
		    	        </li>
		    	    </ul>
	    	    <div style="{{height:">
              
                <ul style="{{height:"></ul></div></div></div></div>
github LoopringSecondary / circulr / src / components / tokens / TransferForm.js View on Github external
form.setFieldsValue({"amount": ''})
                           }
                         }}
                         onBlur={() =&gt; {
                           const amount = form.getFieldValue("amount")
                           if(amount === '') {
                             form.setFieldsValue({"amount": 0})
                           }
                         }}/&gt;
                )}
              
              {transfer.token === "ETH" &amp;&amp; !transfer.advance &amp;&amp;
              <div>
                <div></div>
                <div>
                  
                    
                </div>
              </div>
              }
              {transfer.token === "ETH" &amp;&amp; transfer.advance &amp;&amp;
              <div>
                
                  {form.getFieldDecorator('data', {
                    initialValue: '',
                    rules: [
                      {message: intl.get("token.token_select_verification_message"),
                        validator: (rule, value, cb) =&gt; validateHex(value) ? cb() : cb(true)
                      }
                    ]
                  })(</div>
github pythonkr / pyconkr-web / components / organisms / SponsorForm / index.tsx View on Github external
if (isEmpty(profile)) {
      return (
        <div>
          Oops something wrong. Click to refresh form.
          <button> stores.profileStore.retrieveMe()}&gt;
            refresh
          </button>
        </div>
      )
    }

    const steps = [
      intl.get('contribute.talkProposal.application.stages.stages1.header').d('약관 동의'),
      intl.get('contribute.talkProposal.application.stages.stages2.header').d('후원 정보'),
      intl.get('contribute.talkProposal.application.stages.stages5.header').d('제출 완료'),
    ]

    return (
       this.formWrapperRef = ref}&gt;
        
          
            {steps.map(step =&gt; )}
          
        
        {this.state.currentStage === SponsorFormStage.stage1 &amp;&amp;
           this.setState({ currentStage: SponsorFormStage.stage2 })}
          /&gt;
        }
github pythonkr / pyconkr-web / components / organisms / SponsorPackageTables.tsx View on Github external
{ intl.get('sponsor.prospectus.packages.session.header').d('후원사 세션') }
          { intl.get('common.unit.ea', { number: '2' }).d('2세션') }
          { intl.get('common.unit.ea', { number: '1' }).d('1세션') }
          { intl.get('common.unit.ea', { number: '1' }).d('1세션') }
          -
        
        
          { intl.get('sponsor.prospectus.packages.goods.header').d('증정품 지급') }
          ✅
          ✅
          ✅
          ✅
        
        
          { intl.get('sponsor.prospectus.packages.recruitment.header').d('채용 공고') }
          ✅
          ✅
          ✅
          ✅
        
        
          { intl.get('sponsor.prospectus.packages.logo.header').d('로고 노출 위치') }
          
            { intl.get('sponsor.prospectus.packages.logo.attendeePass').d('참가자 네임택 줄') }<br>
            { intl.get('sponsor.prospectus.packages.logo.hangingBanner').d('현수막') }<br>
            { intl.get('sponsor.prospectus.packages.logo.standingBanner').d('스탠딩 배너') }<br>
            { intl.get('sponsor.prospectus.packages.logo.website').d('웹사이트') }
          
          
            { intl.get('sponsor.prospectus.packages.logo.hangingBanner').d('현수막') }<br>
            { intl.get('sponsor.prospectus.packages.logo.standingBanner').d('스탠딩 배너') }<br>
github LoopringSecondary / circulr / src / components / transactions / ListDefault.js View on Github external
const tx = res.result;
          tx.gasPrice = getGasPrice(tx.gasPrice);
          tx.data = tx.input;
          tx.gasLimit = tx.gas;
          tx.chainId = config.getChainId();
          dispatch({type: 'layers/showLayer', payload: {id: 'resend', tx}})
        } else {
          Notification.open({
            type: 'error',
            message: intl.get('txs.can_not_resend'),
            description: intl.get('txs.not_detail')
          });
        }
      })
    }else{
      Notification.open({type:'warning',message:intl.get('notifications.title.unlock_first')})
    }
  };

react-intl-universal

Internationalize React apps. Not only for React component but also for Vanilla JS.

BSD-3-Clause
Latest version published 3 months ago

Package Health Score

75 / 100
Full package analysis