diff --git a/react-intl/react-intl-tests.tsx b/react-intl/react-intl-tests.tsx index 1a5aba9b3..6a2d6a949 100644 --- a/react-intl/react-intl-tests.tsx +++ b/react-intl/react-intl-tests.tsx @@ -1,6 +1,10 @@ /** * Created by Bruno Grieder */ + +/// +/// + import * as React from 'react' import * as reactMixin from 'react-mixin' @@ -10,7 +14,7 @@ import {IntlMixin, IntlComponent, FormattedNumber, FormattedMessage, FormattedDa /////////////////////////////////////////////////////////////////////////// // // This class does not use the mixin and react-mixin is not required -// The MESSQGES are maintained in the file +// The MESSAGES are maintained in the file // To use it call // //////////////////////////////////////////////////////////////////////////// @@ -30,7 +34,7 @@ module I18nDirect { export interface Props extends IntlComponent.Props {} } -class I18nDirect extends React.Component { +class I18nDirect extends React.Component { private _currentLocale: string private _messages: {[key: string]: string} @@ -69,7 +73,7 @@ class I18nDirect extends React.Component { private compileMessages = (props: I18nDirect.Props): void => { - + let locale = ( props.locales && props.locales[ 0 ] ) || 'en-US' if (this._currentLocale !== locale) { diff --git a/react-intl/react-intl-tests.tsx.tscparams b/react-intl/react-intl-tests.tsx.tscparams new file mode 100644 index 000000000..c90abf04f --- /dev/null +++ b/react-intl/react-intl-tests.tsx.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny --experimentalDecorators --jsx react