terra-i18n
Advanced tools
Comparing version 2.14.0 to 2.15.0
@@ -7,2 +7,8 @@ Changelog | ||
2.15.0 - (July 17, 2018) | ||
------------------ | ||
### Changed | ||
* Minor dependency version bump | ||
* Formatting changes per eslint v4 update | ||
2.14.0 - (July 10, 2018) | ||
@@ -9,0 +15,0 @@ ------------------ |
@@ -8,3 +8,3 @@ # Dependency Information | ||
| commander | ^2.9.0 | -- | the complete solution for node.js command-line programs | | ||
| fs-extra | ^6.0.1 | -- | fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf. | | ||
| fs-extra | ^6.0.1 | | | | ||
| glob | ^7.1.1 | -- | a little globber | | ||
@@ -15,3 +15,3 @@ | intl | ^1.2.5 | -- | Polyfill the ECMA-402 Intl API (except collation) | | ||
| react-intl | ^2.4.0 | ^0.14.9 \|\| ^15.0.0 \|\| ^16.0.0 | Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations. | | ||
| terra-doc-template | ^1.8.0 | ^16.2.0 | Provides an adjustable template for documentation pages. | | ||
| terra-doc-template | ^1.9.0 | ^16.2.0 | Provides an adjustable template for documentation pages. | | ||
@@ -18,0 +18,0 @@ ## devDependencies |
@@ -13,6 +13,2 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _reactIntl = require('react-intl'); | ||
@@ -136,12 +132,4 @@ | ||
Demo.propTypes = { | ||
locale: _propTypes2.default.string | ||
}; | ||
Demo.defaultProps = { | ||
locale: 'en' | ||
}; | ||
exports.default = function () { | ||
return _react2.default.createElement(Demo, null); | ||
}; |
{ | ||
"name": "terra-i18n", | ||
"main": "lib/I18n.js", | ||
"version": "2.14.0", | ||
"version": "2.15.0", | ||
"description": "The terra-i18n package provides on-demand internationalization of React components.", | ||
@@ -43,3 +43,3 @@ "repository": { | ||
"react-intl": "^2.4.0", | ||
"terra-doc-template": "^1.9.0" | ||
"terra-doc-template": "^1.10.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "scripts": { |
@@ -20,4 +20,3 @@ const path = require('path'); | ||
} | ||
}), | ||
); | ||
})); | ||
@@ -24,0 +23,0 @@ return translations; |
const loadArIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/ar.js'), | ||
'ar-intl-local'); | ||
'ar-intl-local', | ||
); | ||
const loadEnIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/en.js'), | ||
'en-intl-local'); | ||
'en-intl-local', | ||
); | ||
const loadEnGBIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/en-GB.js'), | ||
'en-GB-intl-local'); | ||
'en-GB-intl-local', | ||
); | ||
const loadEnUSIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/en-US.js'), | ||
'en-US-intl-local'); | ||
'en-US-intl-local', | ||
); | ||
const loadDeIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/de.js'), | ||
'de-intl-local'); | ||
'de-intl-local', | ||
); | ||
const loadPtIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/pt.js'), | ||
'pt-intl-local'); | ||
'pt-intl-local', | ||
); | ||
const loadPtBRIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/pt-BR.js'), | ||
'pt-BR-intl-local'); | ||
'pt-BR-intl-local', | ||
); | ||
const loadFrIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/fr.js'), | ||
'fr-intl-local'); | ||
'fr-intl-local', | ||
); | ||
const loadFrFRIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/fr-FR.js'), | ||
'fr-FR-intl-local'); | ||
'fr-FR-intl-local', | ||
); | ||
const loadEsIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/es.js'), | ||
'es-intl-local'); | ||
'es-intl-local', | ||
); | ||
const loadEsUSIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/es-US.js'), | ||
'es-US-intl-local'); | ||
'es-US-intl-local', | ||
); | ||
const loadEsESIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/es-ES.js'), | ||
'es-ES-intl-local'); | ||
'es-ES-intl-local', | ||
); | ||
const loadFiFIIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/fi-FI.js'), | ||
'fi-FI-intl-local'); | ||
'fi-FI-intl-local', | ||
); | ||
const loadNlIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/nl.js'), | ||
'nl-intl-local'); | ||
'nl-intl-local', | ||
); | ||
const loadNlBEIntl = () => | ||
require.ensure([], | ||
require.ensure( | ||
[], | ||
require => require('intl/locale-data/jsonp/nl-BE.js'), | ||
'nl-BE-intl-local'); | ||
'nl-BE-intl-local', | ||
); | ||
@@ -76,0 +106,0 @@ const intlLoaders = { |
@@ -22,3 +22,5 @@ /* eslint-disable react/forbid-prop-types */ | ||
const I18nProvider = ({ children, locale, messages, ...customProps }) => ( | ||
const I18nProvider = ({ | ||
children, locale, messages, ...customProps | ||
}) => ( | ||
<IntlProvider locale={locale} key={locale} messages={messages}> | ||
@@ -25,0 +27,0 @@ <div {...customProps}> |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { FormattedMessage } from 'react-intl'; | ||
@@ -54,10 +53,2 @@ | ||
Demo.propTypes = { | ||
locale: PropTypes.string, | ||
}; | ||
Demo.defaultProps = { | ||
locale: 'en', | ||
}; | ||
export default () => <Demo />; |
@@ -77,6 +77,3 @@ /* globals spyOn */ | ||
i18nSupportedLocales.forEach(locale => | ||
translationsFiles.push( | ||
expect.stringContaining(`aggregated-translations${path.sep}${locale}.js`, | ||
), | ||
)); | ||
translationsFiles.push(expect.stringContaining(`aggregated-translations${path.sep}${locale}.js`))); | ||
@@ -83,0 +80,0 @@ aggregateTranslations(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1927
107860
Updatedterra-doc-template@^1.10.0