How to use the decentraland-dapps/dist/modules/translation/utils.t function in decentraland-dapps

To help you get started, we’ve selected a few decentraland-dapps 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 decentraland / builder / src / components / Modals / CreateAssetPackModal / CreateAssetPackModal.tsx View on Github external
renderLogin() {
    return (
      <>
        
        
          
            <button>
              {t('asset_pack.login.action')}
            </button>
          
        
      
    )
  }
github decentraland / builder / src / modules / template / utils.ts View on Github external
export function getTemplates(): Template[] {
  return [
    {
      title: t('templates.small'),
      description: t('templates.description', { dimensions: getDimensions(1, 1), amount: 20 }),
      thumbnail: 'thumb-1x1',
      rows: 1,
      cols: 1
    },
    {
      title: t('templates.medium'),
      description: t('templates.description', { dimensions: getDimensions(2, 2), amount: 80 }),
      thumbnail: 'thumb-2x2',
      rows: 2,
      cols: 2
    },
    {
      title: t('templates.big'),
      description: t('templates.description', { dimensions: getDimensions(2, 3), amount: 120 }),
      thumbnail: 'thumb-2x3',
github decentraland / builder / src / components / Modals / ShortcutsModal / ShortcutsModal.tsx View on Github external
const getCategoryTitles = (): Record =&gt; ({
  editor: t('shortcuts_modal.editor_shortcuts'),
  item: t('shortcuts_modal.item_shortcuts'),
  other: t('shortcuts_modal.other_shortcuts')
})
github decentraland / builder / src / components / Modals / DeployModal / DeployModal.tsx View on Github external
renderChoiceForm = () =&gt; {
    const { name } = this.props

    return (
      
        <div>
          <div>
            
          </div>
          <header size="large">
            {t('deployment_modal.title')}
          </header>
          <p>{t('deployment_modal.description')}</p>
          <div>
            <div>
              <div>
              <span>{t('deployment_modal.option_pool.title')}</span>
              <span>{t('deployment_modal.option_pool.description')}</span>
              <button size="small">
                {t('deployment_modal.option_pool.action')}
              </button>
            </div>
            <div>
              <div>
              <span>{t('deployment_modal.option_land.title')}</span>
              <span>{t('deployment_modal.option_land.description')}</span>
              <button size="small"></button></div></div></div></div></div>
github decentraland / builder / src / components / AssetsEditor / SingleAssetEditor / SingleAssetEditor.tsx View on Github external
value={asset.name}
            onChange={this.handleChangeName}
            error={!!errors.name}
            message={errors.name}
          /&gt;
          
          
          
        
      
    )
  }
}
github decentraland / builder / src / components / AssetsEditor / SingleAssetEditor / SingleAssetEditor.tsx View on Github external
return (
      <div>
        <div>
          <img src="{asset.thumbnail}">
          <span>
            
            {asset.metrics.triangles} {t('metrics.triangles')}
          </span>
          <span>
            
            {asset.metrics.textures} {t('metrics.textures')}
          </span>
          <span>
            
            {asset.metrics.materials} {t('metrics.materials')}
          </span>
        </div>
        <div>
          
          </div></div>
github decentraland / builder / src / components / Modals / CustomLayoutModal / CustomLayoutModal.tsx View on Github external
return (
      
        {t('templates.custom_layout.title')}
        
          <p>{t('custom_layout_modal.subtitle_one')}</p>
          <p>{t('custom_layout_modal.subtitle_two')}</p>
        
        
          
        
        
          <button>
            {t('global.cancel')}
          </button>
          <button disabled="{hasError}">
            {t('global.create')}
          </button>
        
      
    )
  }
}
github decentraland / builder / src / components / MobilePageHero / MobilePageHero.tsx View on Github external
render() {
    const { email, isLoading, hasMobileEmail } = this.props

    return (
      
        {t('home_page.title')}
        
          <span>
            
          </span>
        
        
          {isMobile().any ? (
            <form>
              <p>{t('mobile_page.message')}</p>

              {!hasMobileEmail ? (
                <div>
                  
                  <button disabled="{isLoading}" size="medium">
                    {t('global.sign_up')}
                  </button>
                </div></form>
github decentraland / builder / src / components / AssetsEditor / AssetsEditor.tsx View on Github external
<div>
          {assets.length &gt; 1 &amp;&amp; (
            <div>
              <button disabled="{isFirst}">
              <span>
                {currentAsset + 1}/{assets.length}
              </span>
              </button><button disabled="{isLast}">
            </button></div>
          )}

          <button disabled="{isSubmitDisabled}">
            {isEditing &amp;&amp; t('global.save')}
            {!isEditing &amp;&amp; (isLast ? t('asset_pack.edit_asset.action') : t('asset_pack.edit_asset.action_skip'))}
          </button>
        </div>
      
    )
  }
}