Skip to content

Commit

Permalink
upgrade s18n to v2.0.0, bump version to v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed Oct 12, 2015
1 parent 6e3014f commit 99f842f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
Gulp-l10n follows [semantic versioning](http://semver.org/).

# v1.2.0
- Upgraded `s18n` to `v2.0.0` ([Changelog](https://github.com/bitjson/s18n/blob/master/CHANGELOG.md#v110))

# v1.1.0
- Upgraded `s18n` to `v1.1.0` ([Changelog](https://github.com/bitjson/s18n/blob/master/CHANGELOG.md#v110))
- Added `outPath` option to `l10n` method
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![npm version](https://badge.fury.io/js/gulp-l10n.svg)](http://badge.fury.io/js/gulp-l10n) [![Build Status](https://travis-ci.org/bitjson/gulp-l10n.svg)](https://travis-ci.org/bitjson/gulp-l10n) [![Coverage Status](https://coveralls.io/repos/bitjson/gulp-l10n/badge.svg?branch=master)](https://coveralls.io/r/bitjson/gulp-l10n?branch=master) [![Dependency Status](https://david-dm.org/bitjson/gulp-l10n.svg)](https://david-dm.org/bitjson/gulp-l10n) [![Stories in Ready](https://badge.waffle.io/bitjson/gulp-l10n.png?label=ready&title=Ready)](https://waffle.io/bitjson/gulp-l10n)
[![npm version](https://badge.fury.io/js/gulp-l10n.svg)](https://www.npmjs.com/package/s18n) [![Build Status](https://travis-ci.org/bitjson/gulp-l10n.svg)](https://travis-ci.org/bitjson/gulp-l10n) [![Coverage Status](https://coveralls.io/repos/bitjson/gulp-l10n/badge.svg?branch=master)](https://coveralls.io/r/bitjson/gulp-l10n?branch=master) [![Dependency Status](https://david-dm.org/bitjson/gulp-l10n.svg)](https://david-dm.org/bitjson/gulp-l10n) [![Stories in Ready](https://badge.waffle.io/bitjson/gulp-l10n.png?label=ready&title=Ready)](https://waffle.io/bitjson/gulp-l10n)

# gulp-l10n
A gulp plugin that wraps [s18n](https://github.com/bitjson/s18n) and provides simple tooling for localizing html. Perfect for static generated sites and applications.
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ module.exports = function(options) {

var contents = s18n(String(localizedFile.contents), {
nativeLocale: localeCaches[cacheId].locales[localeCaches[cacheId].native],
locale: localeCaches[cacheId].locales[id]
nativeLocaleId: localeCaches[cacheId].native,
locale: localeCaches[cacheId].locales[id],
localeId: id
});

if(hrefRewrite){
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "gulp-l10n",
"version": "1.1.0",
"version": "1.2.0",
"description": "Parse and collect localizable strings from html.",
"main": "index.js",
"dependencies": {
"gulp-util": "^3.0.6",
"s18n": "^1.1.0",
"s18n": "^2.0.0",
"through2": "^2.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 99f842f

Please sign in to comment.