Skip to content

Instantly share code, notes, and snippets.

@theodesp theodesp/App.js
Created Nov 14, 2019

Embed
What would you like to do?
import React, {Component} from "react";
import intl from 'react-intl-universal';
// common locale data
require('intl/locale-data/jsonp/el.js');
export default class App extends Component {
state = {initDone: false};
componentDidMount() {
this.loadLocales();
}
loadLocales() {
intl.init({
currentLocale: i18nConfig.locale,
locales,
})
.then(() => {
// After loading CLDR locale data, start to render
this.setState({initDone: true});
});
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.