Skip to content

translationexchange/tml-js-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tml-js-react

Simple wrapper around TML (Translation Markup Language) for React

Install

npm install 'tml-js-react';

Usage

import React from 'react';
import {tr, trl} from 'tml-js-react';

class YourComponent extends React.Component {
  render() {
    return (
      <div>
        <h1>{ tr('Welcome {username}', {username: 'Jane'}) }</h1>
        <input placeholder={ trl('Enter your email') } />
        <button>{ tr('Get Started') }</button>
      </div>
    );
  }
}

export default YourComponent;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published