All Projects → evenchange4 → react-intl-po-example

evenchange4 / react-intl-po-example

Licence: MIT License
👉 This is a standalone project for using react-intl-po with CRA.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-intl-po-example

egghead-bookshelf
An example React application to accompany the "Add Internationalization (i18n) to a React app using React Intl" Egghead.io course
Stars: ✭ 28 (-26.32%)
Mutual labels:  create-react-app, react-intl
react-intl-cra
🔧 Extract messages of Creact React App from the command line.
Stars: ✭ 68 (+78.95%)
Mutual labels:  create-react-app, react-intl
react-intl.macro
Extract react-intl messages with babel-plugin-macros.
Stars: ✭ 39 (+2.63%)
Mutual labels:  create-react-app, react-intl
kkt
Create React apps with no build configuration, Cli tool for creating react apps.
Stars: ✭ 40 (+5.26%)
Mutual labels:  create-react-app
cra-template-unicorn
🦄 The full template of create-react-app with typescript, redux-toolkit, react-redux, react-router for Single Page Application!
Stars: ✭ 56 (+47.37%)
Mutual labels:  create-react-app
admin-template-for-react
🌏 Admin template for React, React Redux, Redux Saga, React Router, i18n and integrated OAuth login
Stars: ✭ 83 (+118.42%)
Mutual labels:  react-intl
react-shopping-cart-demo
Notes and the code for the React.js crash course by Mosh Hamedani.
Stars: ✭ 86 (+126.32%)
Mutual labels:  create-react-app
go-create-react-app
This is a demo project which shows one of possible implementations of intergration between regular server on Golang and React application created and built using create-react-app
Stars: ✭ 26 (-31.58%)
Mutual labels:  create-react-app
create-react-app-relay-modern
Create React App + Relay Modern
Stars: ✭ 50 (+31.58%)
Mutual labels:  create-react-app
linkedin-clone-react-frontend
🚀 Frontend for a software similar to LinkedIn
Stars: ✭ 48 (+26.32%)
Mutual labels:  create-react-app
truffle-react
⚛️ A boilerplate Truffle Box project with Create React App for rapid Ethereum Dapp development
Stars: ✭ 45 (+18.42%)
Mutual labels:  create-react-app
react-component-lib
Boilerplate repo for creating npm packages with React components written in TypeScript and using styled-components
Stars: ✭ 69 (+81.58%)
Mutual labels:  create-react-app
energy-use-case-trading-client
Energy Use Case Web UI for Lition Trading Platform
Stars: ✭ 23 (-39.47%)
Mutual labels:  react-intl
dva-boot
🌱 使用CRA(create-react-app v2) 构建的react dva 2 脚手架 支持动态路由、接口数据模拟、按功能分层、并且包含诸多实用的小组件
Stars: ✭ 79 (+107.89%)
Mutual labels:  create-react-app
extract-react-intl
Extract react-intl messages
Stars: ✭ 18 (-52.63%)
Mutual labels:  react-intl
rescript-react-intl
ReScript bindings to react-intl
Stars: ✭ 42 (+10.53%)
Mutual labels:  react-intl
boss
React+express+sock.io+mongodb build a boss
Stars: ✭ 25 (-34.21%)
Mutual labels:  create-react-app
over-hangman
💥 Over powered hangman game
Stars: ✭ 42 (+10.53%)
Mutual labels:  create-react-app
react-app-rewire-webpack-bundle-analyzer
Add webpack-bundle-analyzer to a react-app-rewired config.
Stars: ✭ 24 (-36.84%)
Mutual labels:  create-react-app
eslint-config-website
GUI for generating ESLint configs
Stars: ✭ 45 (+18.42%)
Mutual labels:  create-react-app

React-intl-po-example Build Status

This is a standalone project for using react-intl-po with CRA. Futher Reading: 中文

Screenshots

Demo

Tutorials

Step 0. Create a project with zero config

$ npm i create-react-app -g
$ create-react-app react-intl-po-example
$ cd react-intl-po-example
$ yarn start

Step 1. Extract messages of CRA-Project from the command line.

$ yarn add react-intl react-intl-cra
+ "extract:messages": "react-intl-cra 'src/**/*.js' -o 'output/messages.json'",

Step 2. Extract pot with react-intl-po

$ yarn add react-intl-po
+ "extract:pot": "react-intl-po json2pot 'output/messages.json' -o 'output/messages.pot'"

Option

How to translate the same message into two different meanings? (By @Sand1929 in #83)

- "extract:pot": "react-intl-po json2pot 'output/messages.json' -o 'output/messages.pot'"
+ "extract:pot": "react-intl-po json2pot 'output/messages.json' -c 'id' -o 'output/messages.pot'"

Step 3. Translate (po => json)

+ "extract:po": "react-intl-po po2json 'input/*.po' -c 'id' -m 'output/messages.json' -o 'output/translation.json'"
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].