GithubHelp home page GithubHelp logo

muteor / react-i18next Goto Github PK

View Code? Open in Web Editor NEW

This project forked from i18next/react-i18next

0.0 2.0 0.0 1.48 MB

Internationalization for react done right. Using the i18next i18n ecosystem.

Home Page: https://react.i18next.com/

License: MIT License

HTML 0.40% CSS 0.13% JavaScript 99.47%

react-i18next's Introduction

react-i18next

Higher-order components and components for React when using i18next.

Travis CI Code Climate Coverage Status Quality dependencies devdependencies

How will my code look like?

Before: Your react code would have looked something like:

...
<div>Just simple content</div>
<div>
  Hello <strong title="this is your name">{name}</strong>, you have {count} unread message(s). <Link to="/msgs">Go to messages</Link>.
</div>
...

After: With the trans component just change it to:

...
<div>{t('simpleContent')}</div>
<Trans i18nKey="userMessagesUnread" count={count}>
  Hello <strong title={t('nameTitle')}>{{name}}</strong>, you have {{count}} unread message. <Link to="/msgs">Go to messages</Link>.
</Trans>
...

Have a look at the interactive playground at webpackbin.

video

watch the video

Documentation

The documentation is published on react.i18next.com

Installation

Source can be loaded via npm, bower or downloaded from this repo.

# npm package
$ npm install react-i18next

# bower
$ bower install react-i18next
  • If you don't use a module loader it will be added to window.reactI18next

Examples

Requirements

  • react >= 0.14.0
  • i18next >= 2.0.0

NEWS: localization as a service - locize.com

Needing a translation management? Want to edit your translations with an InContext Editor? Use the orginal provided to you by the maintainers of i18next!

locize

With using locize you directly support the future of i18next and react-i18next.


react-i18next's People

Contributors

102 avatar adrai avatar alex509 avatar antono avatar aray12 avatar cwalv avatar difelice avatar greenkeeperio-bot avatar haroenv avatar jamuhl avatar jmfrancois avatar josephmcasey avatar jussikinnula avatar kadishmal avatar kostyaesmukov avatar marlonbernardes avatar nassimbenkirane avatar newsiberian avatar nicolechung avatar notmlee avatar perrin4869 avatar rarguellof avatar roadhump avatar solomon-gumball avatar stoeffel avatar tkislan avatar tusbar avatar vpriem avatar wichert avatar yiskang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.