All Projects → phrase → react-i18next-phraseapp

phrase / react-i18next-phraseapp

Licence: MIT license
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-i18next-phraseapp

Pseudo Localization
Dynamic pseudo-localization in the browser and nodejs
Stars: ✭ 109 (+678.57%)
Mutual labels:  i18n, localization, l10n
ad localize
ADLocalize is a simple way to manage your localization files. Supported wording sources : CSVs and Google Sheets. Localization file generation available for iOS, Android, JSON (i18next), YAML and Java properties
Stars: ✭ 22 (+57.14%)
Mutual labels:  i18n, localization, i18next
Dom I18n
Provides a very basic HTML multilingual support using JavaScript
Stars: ✭ 125 (+792.86%)
Mutual labels:  i18n, localization, l10n
Redux React I18n
An i18n solution for React/Redux and React Native projects
Stars: ✭ 64 (+357.14%)
Mutual labels:  i18n, localization, l10n
msgtools
Tools for Developing Diagnostic Messages
Stars: ✭ 18 (+28.57%)
Mutual labels:  i18n, localization, l10n
Locale2
💪 Try as hard as possible to detect the client's language tag ("locale") in node or the browser. Browserify and Webpack friendly!
Stars: ✭ 65 (+364.29%)
Mutual labels:  i18n, localization, l10n
Es2015 I18n Tag
ES2015 template literal tag for i18n and l10n (translation and internationalization)
Stars: ✭ 171 (+1121.43%)
Mutual labels:  i18n, localization, l10n
Tower
i18n & L10n library for Clojure/Script
Stars: ✭ 264 (+1785.71%)
Mutual labels:  i18n, localization, l10n
Serge
Continuous localization platform
Stars: ✭ 212 (+1414.29%)
Mutual labels:  i18n, localization, l10n
Weblate
Web based localization tool with tight version control integration.
Stars: ✭ 2,719 (+19321.43%)
Mutual labels:  i18n, localization, l10n
Fluent.js
JavaScript implementation of Project Fluent
Stars: ✭ 622 (+4342.86%)
Mutual labels:  i18n, localization, l10n
awesome-i18n
🌍 A curated list of i18n resources for all kind of languages and frameworks
Stars: ✭ 205 (+1364.29%)
Mutual labels:  i18n, localization, l10n
Fluent Rs
Rust implementation of Project Fluent
Stars: ✭ 503 (+3492.86%)
Mutual labels:  i18n, localization, l10n
Keys Translations Manager
KTM, a locale management web app built on MERN stack, lets you manage and control locales in one place. It's particularly useful for someone who needs to manage multiple internationalization/localization projects.
Stars: ✭ 81 (+478.57%)
Mutual labels:  i18n, localization, l10n
Laravel Js Localization
🌐 Convert your Laravel messages and consume them in the front-end!
Stars: ✭ 451 (+3121.43%)
Mutual labels:  i18n, localization, l10n
Punic
PHP translation and localization made easy!
Stars: ✭ 133 (+850%)
Mutual labels:  i18n, localization, l10n
labels
Bolt Labels extension - Translatable labels for Bolt
Stars: ✭ 18 (+28.57%)
Mutual labels:  i18n, localization, l10n
Mojito
An automation platform that enables continuous localization.
Stars: ✭ 256 (+1728.57%)
Mutual labels:  i18n, localization, l10n
Node Gettext
A JavaScript implementation of gettext, a localization framework.
Stars: ✭ 175 (+1150%)
Mutual labels:  i18n, localization, l10n
React Native Globalize
Internationalization (i18n) for React Native
Stars: ✭ 246 (+1657.14%)
Mutual labels:  i18n, localization, l10n

DEPRECATED react-i18next-phraseapp

Build status No Maintenance Intended

This package has been deprecated in favor of I18next Phrase In-Context Editor Post Processor. Please have a look at the documentation for examples on how it can be used with React applications.

Original Readme

This library lets you integrate the PhraseApp In-Context Editor easily with your React apps localized with react-i18next.

Installation

Install the package via npm:

$ npm install react-i18next-phraseapp

Then, replace all calls to translate() with the translate function provided by react-i18next-phraseapp:

- import { withNamespaces } from 'react-i18next';
+ import { withNamespaces } from 'react-i18next-phraseapp';

Now, wrap your application with the PhraseAppProvider:

import { I18nextProvider } from 'react-i18next';
import { PhraseAppProvider } from 'react-i18next-phraseapp';

ReactDOM.render(
  <I18nextProvider i18n={ i18n }>
    <PhraseAppProvider config={ window.PHRASEAPP_CONFIG }>
      <MyApp />
    </PhraseAppProvider>
  </I18nextProvider>,
  document.getElementById('root')
);

As the last step, provide the PhraseApp configuration before your app is mounted:

 <div id="root"></div>
 <script>
   window.PHRASEAPP_ENABLED = true;
   window.PHRASEAPP_CONFIG = {
     projectId: "<project-id>",
     prefix: "[[__",
     suffix: "__]]",
     fullReparse: true
   };
 </script>
 <script src="bundle.js"></script>

Done.

Demo

You can find a demo project on GitHub.

Test

Run tests via jest:

$ npm test

Build

$ npm run build

Acknowledgements

Thank you to choffmeister for pointing us in the right direction.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].