react-intl
Radium
Our great sponsors
react-intl | Radium | |
---|---|---|
5 | 3 | |
12,829 | 7,432 | |
- | - | |
9.7 | 0.7 | |
over 2 years ago | about 2 years ago | |
TypeScript | JavaScript | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-intl
-
How to get list of all timezones in javascript
I am developing an application with react/redux, and I started using library react-intl for formatting messages and dates.
-
Manual mock React-Intl with Jest to have snapshot testing
I have been struggling mocking React-Intl library with Jest because I'm having this error when I run tests:
-
React-intl define messages outside of react
export function categoryIdToCategoryName(categoryId) {let name;switch (categoryId) { case constants.RISK_CATEGORY_LOW: name = 'low'; break; case constants.RISK_CATEGORY_MEDIUM: name = 'medium'; break; case constants.RISK_CATEGORY_HIGH: name = 'high'; break; case constants.RISK_CATEGORY_CRITICAL: name = 'critical'; break; default: console.warn('see: /utils/risk.js', 'categoryIdToCategoryName:', categoryId); name = 'unknown'; } return name;} I would like to translate this texts - [low, medium, high, critical] using https://github.com/yahoo/react-intl. So I defined messages
-
Intl.js polyfill/shim with webpack?
I'm using React-Intl with webpack and I need the Intl shim to support Safari and IE, but I don't want to load it for browsers that already support the Intl spec.
-
The React roadmap for beginners you never knew you needed.
React Intl
Radium
-
Object spread vs. Object.assign
options = Object.assign({}, optionsDefault, options); This is the commit that made me wonder.
-
The React roadmap for beginners you never knew you needed.
Radium
-
Tagged Template Literals - The Magic Behind Styled Components
If you have some experience with React, you probably came across styled-components. In the last few years, the concept of css-in-js became more popular, and there are multiple libraries that are available for us to use. styled-components is one of them, but you can also find Emotion, Radium, JSS, and more. In this post I'm not going to cover the pros and cons of traditional stylesheet files vs. styled-components, and instead - I'm going to focus on tagged template literals - the "magic" that let us use the styled-components syntax.
What are some alternatives?
simplelocalize-i18next - React localization example app with i18next http backend
styled-components - Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
Materialize - Materialize, a CSS Framework based on Material Design
classnames - A simple javascript utility for conditionally joining classNames together
vocab - Vocab is a strongly typed internationalization framework for React
Aphrodite - Framework-agnostic CSS-in-JS with support for server-side rendering, browser prefixing, and minimum CSS generation
react-i18n - i18n small library for react. Integrates easily with any backend
React CSS Modules - Seamless mapping of class names to CSS modules inside of React components.
mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser
emotion - 👩🎤 CSS-in-JS library designed for high performance style composition
MobX - Simple, scalable state management.
inline-style-prefixer - Autoprefixer for JavaScript style objects