Comparing version 3.0.3 to 3.0.8
@@ -601,2 +601,6 @@ // I18n.js | ||
translation = this.interpolate(translation, options); | ||
} else if (isArray(translation)) { | ||
translation = translation.map(function(t) { | ||
return this.interpolate(t, options); | ||
}, this); | ||
} else if (isObject(translation) && isSet(options.count)) { | ||
@@ -603,0 +607,0 @@ translation = this.pluralize(options.count, scope, options); |
@@ -21,2 +21,41 @@ # Change Log | ||
## [3.0.8] - 2018-06-06 | ||
### Changed | ||
- [JS] Interpolate translation array too | ||
(PR: https://github.com/fnando/i18n-js/pull/498) | ||
## [3.0.7] - 2018-05-30 | ||
### Fixed | ||
- [Ruby] Fix new bug occuring when config file is absent | ||
## [3.0.6] - 2018-05-30 | ||
### Fixed | ||
- [Ruby] Make JS `i18n/filtered` depends on i18n-js config too | ||
(PR: https://github.com/fnando/i18n-js/pull/497) | ||
## [3.0.5] - 2018-02-26 | ||
### Changed | ||
- [Ruby] Support `I18n` `1.0.x` | ||
(PR: https://github.com/fnando/i18n-js/pull/492) | ||
## [3.0.4] - 2018-01-26 | ||
### Fixed | ||
- [Ruby] Fix `JS::Dependencies.using_asset_pipeline?` returning true when sprockets installed but disabled | ||
(PR: https://github.com/fnando/i18n-js/pull/488) | ||
## [3.0.3] - 2018-01-02 | ||
@@ -274,3 +313,8 @@ | ||
[Unreleased]: https://github.com/fnando/i18n-js/compare/v3.0.3...HEAD | ||
[Unreleased]: https://github.com/fnando/i18n-js/compare/v3.0.8...HEAD | ||
[3.0.8]: https://github.com/fnando/i18n-js/compare/v3.0.7...v3.0.8 | ||
[3.0.7]: https://github.com/fnando/i18n-js/compare/v3.0.6...v3.0.7 | ||
[3.0.6]: https://github.com/fnando/i18n-js/compare/v3.0.5...v3.0.6 | ||
[3.0.5]: https://github.com/fnando/i18n-js/compare/v3.0.4...v3.0.5 | ||
[3.0.4]: https://github.com/fnando/i18n-js/compare/v3.0.3...v3.0.4 | ||
[3.0.3]: https://github.com/fnando/i18n-js/compare/v3.0.2...v3.0.3 | ||
@@ -277,0 +321,0 @@ [3.0.2]: https://github.com/fnando/i18n-js/compare/v3.0.1...v3.0.2 |
{ | ||
"name": "i18n-js", | ||
"version": "3.0.3", | ||
"version": "3.0.8", | ||
"description": "A javascript library similar to Ruby on Rails i18n gem", | ||
"author": "Nando Vieira", | ||
"license": "MIT", | ||
"keywords": ["i18n"], | ||
"keywords": [ | ||
"i18n" | ||
], | ||
"devDependencies": { | ||
@@ -9,0 +11,0 @@ "jasmine-node": "^1.14.5" |
@@ -67,3 +67,3 @@ # I18n.js | ||
**There are two ways to get `translations.js`.** | ||
**There are two ways to get `translations.js` (For Rails app without Asset Pipeline).** | ||
@@ -70,0 +70,0 @@ 1. This `translations.js` file can be automatically generated by the `I18n::JS::Middleware`. |
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
72901
922