Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collaborne/gulp-xliff-to-carbon-i18n
gulp plugin to transform XLIFF into Collaborne/carbon-i18n-behavior-compatible JS files
https://github.com/collaborne/gulp-xliff-to-carbon-i18n
Last synced: 1 day ago
JSON representation
gulp plugin to transform XLIFF into Collaborne/carbon-i18n-behavior-compatible JS files
- Host: GitHub
- URL: https://github.com/collaborne/gulp-xliff-to-carbon-i18n
- Owner: Collaborne
- License: apache-2.0
- Created: 2016-01-28T18:30:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T09:26:13.000Z (almost 6 years ago)
- Last Synced: 2024-10-28T15:55:24.156Z (9 days ago)
- Language: XSLT
- Size: 42 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-xliff-to-carbon-i18n [![Build Status](https://travis-ci.org/Collaborne/gulp-xliff-to-carbon-i18n.svg?branch=master)](https://travis-ci.org/Collaborne/gulp-xliff-to-carbon-i18n) [![Greenkeeper badge](https://badges.greenkeeper.io/Collaborne/gulp-xliff-to-carbon-i18n.svg)](https://greenkeeper.io/)
Plugin for gulp to convert XLIFF 1.2 files into JS files for use with [Collaborne/carbon-i18n-behavior](https://github.com/Collaborne/carbon-i18n-behavior)
_[Blog post explaining the plugin](https://medium.com/collaborne-engineering/localize-polymer-applications-with-a-translation-agency-b3291b574c85)_
## Installation
$ npm install --save-dev gulp-xliff-to-carbon-i18n
## Usage
```js
var xliff2js = require('gulp-xliff-to-carbon-i18n');gulp.task('process-xliff-files', function() {
gulp.src('**/*.xliff')
.pipe(xliff2js())
.pipe(gulp.dest('dist'));
});
```### Options
`useSource`: If set to `true` then the plugin produces output for the *source* language, otherwise for the *target* language.
## License
This software is licensed under the Apache 2 license, quoted below.
Copyright 2011-2017 Collaborne B.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.