forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy Pontoon-friendly L10n resources to SDK add-on friendly paths
- Move add-on locales to Pontoon-friendly paths - Gulp task to copy Pontoon-friendly resources to add-on friendly paths - Update add-on build in CircleCI to run the gulp task - Update .gitignore - Update docs Fixes mozilla#557
- Loading branch information
Showing
7 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const gulp = require('gulp'); | ||
const rename = require('gulp-rename'); | ||
|
||
gulp.task('addon-copy-locales', () => | ||
gulp.src('./locales/**/addon.properties') | ||
.pipe(rename(path => { | ||
// Transform {LOCALE}/addon.properties -> {LOCALE}.properties | ||
path.basename = path.dirname; | ||
path.dirname = ''; | ||
})) | ||
.pipe(gulp.dest('./addon/locale')) | ||
); | ||
|
||
gulp.task('addon-watch-locales', () => | ||
gulp.watch('./locales/**/addon.properties', ['addon-copy-locales'])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters