Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@transifex/react

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transifex/react

Transifex Native for React

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.6K
decreased by-18.07%
Maintainers
1
Weekly downloads
 
Created
Source

Transifex Native for React

React component for localizing React application using Transifex Native.

Related packages:

Install

Install the library and its dependencies using:

npm install @transifex/native @transifex/react --save

Usage

import React, { Component } from 'react'

import T from '@transifex/react'

class Example extends Component {
  render() {
    const user = 'Joe';
    return (
      <div>
        <T _str="Hello world" />
        <T _str="Hello {username}" username={user} />
        <T
          _str="Hello <b>{username}</b>"
          _html
          username={user}
        />
        <p>
          <T
            _str="Hello <b>{username}</b>"
            _html _inline
            username={user}
          />
        </p>
      </div>
    )
  }
}

Available optional props:

PropTypeDescription
_strStringSource string
_htmlBooleanRender source string as HTML inside a div tag
_inlineBooleanWrap translation in span when _html is used
_contextStringString context, affects key generation
_keyStringCustom string key
_commentStringDeveloper comment
_charlimitNumberCharacter limit instruction for translators
_tagsStringComma separated list of tags

License

Licensed under Apache License 2.0, see LICENSE file.

Keywords

FAQs

Package last updated on 30 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc