terra-i18n
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -7,6 +7,11 @@ Changelog | ||
2.6.0 - (April 20, 2018) | ||
------------------ | ||
### Added | ||
* Added support for nl and nl-BE locales | ||
2.5.0 - (April 15, 2018) | ||
------------------ | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -41,3 +46,3 @@ 2.4.0 - (April 5, 2018) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -52,3 +57,3 @@ 2.0.0 - (February 12, 2018) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -58,3 +63,3 @@ 1.13.0 - (January 18, 2018) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -64,3 +69,3 @@ 1.12.0 - (November 28, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -70,3 +75,3 @@ 1.11.0 - (November 16, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -81,3 +86,3 @@ 1.10.0 - (October 6, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -87,3 +92,3 @@ 1.8.0 - (September 19, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -93,3 +98,3 @@ 1.7.0 - (September 12, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -99,3 +104,3 @@ 1.6.0 - (September 7, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -115,3 +120,3 @@ 1.5.0 - (September 5, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -121,3 +126,3 @@ 1.2.0 - (August 1, 2017) | ||
### Changed | ||
* Minor version bump | ||
* Minor dependency version bump | ||
@@ -124,0 +129,0 @@ 1.1.0 - (July 18, 2017) |
@@ -33,2 +33,4 @@ # Terra I18n | ||
| fr-FR | French - France| | ||
| nl | Dutch | | ||
| nl-BE | Dutch (Belgium)| | ||
| pt | Portuguese | | ||
@@ -35,0 +37,0 @@ | pt-BR | Portuguese - Brazil| |
@@ -81,2 +81,14 @@ 'use strict'; | ||
var loadNlIntl = function loadNlIntl() { | ||
return require.ensure([], function (require) { | ||
return require('intl/locale-data/jsonp/nl.js'); | ||
}, 'nl-intl-local'); | ||
}; | ||
var loadNlBEIntl = function loadNlBEIntl() { | ||
return require.ensure([], function (require) { | ||
return require('intl/locale-data/jsonp/nl-BE.js'); | ||
}, 'nl-BE-intl-local'); | ||
}; | ||
var intlLoaders = { | ||
@@ -95,5 +107,7 @@ ar: loadArIntl, | ||
'es-ES': loadEsESIntl, | ||
'fi-FI': loadFiFIIntl | ||
'fi-FI': loadFiFIIntl, | ||
nl: loadNlIntl, | ||
'nl-BE': loadNlBEIntl | ||
}; | ||
module.exports = intlLoaders; |
@@ -107,2 +107,18 @@ 'use strict'; | ||
var loadNlTranslation = function loadNlTranslation(callback, scope) { | ||
require.ensure([], function (require) { | ||
// eslint-disable-next-line | ||
var i18n = require('nl.js'); | ||
callback.call(scope, i18n); | ||
}, 'nl-translations'); | ||
}; | ||
var loadNlBETranslation = function loadNlBETranslation(callback, scope) { | ||
require.ensure([], function (require) { | ||
// eslint-disable-next-line | ||
var i18n = require('nl-BE.js'); | ||
callback.call(scope, i18n); | ||
}, 'nl-BE-translations'); | ||
}; | ||
var translationLoaders = { | ||
@@ -121,5 +137,7 @@ ar: loadArTranslation, | ||
'es-ES': loadEsESTranslation, | ||
'fi-FI': loadFiFITranslation | ||
'fi-FI': loadFiFITranslation, | ||
nl: loadNlTranslation, | ||
'nl-BE': loadNlBETranslation | ||
}; | ||
module.exports = translationLoaders; |
'use strict'; | ||
module.exports = ['ar', 'en', 'en-US', 'en-GB', 'es', 'es-US', 'es-ES', 'de', 'fi-FI', 'fr', 'fr-FR', 'pt', 'pt-BR']; | ||
module.exports = ['ar', 'en', 'en-US', 'en-GB', 'es', 'es-US', 'es-ES', 'de', 'fi-FI', 'fr', 'fr-FR', 'nl', 'nl-BE', 'pt', 'pt-BR']; |
{ | ||
"name": "terra-i18n", | ||
"main": "lib/I18n.js", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "The terra-i18n package provides on-demand internationalization of React components.", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -21,2 +21,6 @@ const path = require('path'); | ||
const aggregatedTranslations = (options) => { | ||
// eslint-disable-next-line no-console | ||
console.warn('WARNING: The terra-i18n aggregate-translations command has moved to terra terra-toolkit. Please use the "tt:aggregate-translations" command instead or include it from there. e.x. "require(\'terra-toolkit/scripts/aggregate-translations/aggregate-translations\')"'); | ||
const baseDir = (options || {}).baseDir || process.cwd(); | ||
@@ -23,0 +27,0 @@ const directories = (options || {}).directories || []; |
@@ -66,2 +66,12 @@ const loadArIntl = () => | ||
const loadNlIntl = () => | ||
require.ensure([], | ||
require => require('intl/locale-data/jsonp/nl.js'), | ||
'nl-intl-local'); | ||
const loadNlBEIntl = () => | ||
require.ensure([], | ||
require => require('intl/locale-data/jsonp/nl-BE.js'), | ||
'nl-BE-intl-local'); | ||
const intlLoaders = { | ||
@@ -81,4 +91,6 @@ ar: loadArIntl, | ||
'fi-FI': loadFiFIIntl, | ||
nl: loadNlIntl, | ||
'nl-BE': loadNlBEIntl, | ||
}; | ||
module.exports = intlLoaders; |
@@ -105,2 +105,18 @@ const loadArTranslation = (callback, scope) => { | ||
const loadNlTranslation = (callback, scope) => { | ||
require.ensure([], (require) => { | ||
// eslint-disable-next-line | ||
const i18n = require('nl.js'); | ||
callback.call(scope, i18n); | ||
}, 'nl-translations'); | ||
}; | ||
const loadNlBETranslation = (callback, scope) => { | ||
require.ensure([], (require) => { | ||
// eslint-disable-next-line | ||
const i18n = require('nl-BE.js'); | ||
callback.call(scope, i18n); | ||
}, 'nl-BE-translations'); | ||
}; | ||
const translationLoaders = { | ||
@@ -120,4 +136,6 @@ ar: loadArTranslation, | ||
'fi-FI': loadFiFITranslation, | ||
nl: loadNlTranslation, | ||
'nl-BE': loadNlBETranslation, | ||
}; | ||
module.exports = translationLoaders; |
@@ -1,1 +0,1 @@ | ||
module.exports = ['ar', 'en', 'en-US', 'en-GB', 'es', 'es-US', 'es-ES', 'de', 'fi-FI', 'fr', 'fr-FR', 'pt', 'pt-BR']; | ||
module.exports = ['ar', 'en', 'en-US', 'en-GB', 'es', 'es-US', 'es-ES', 'de', 'fi-FI', 'fr', 'fr-FR', 'nl', 'nl-BE', 'pt', 'pt-BR']; |
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
1523
271162
84
85