mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 16:55:24 +03:00
Remove underscore from _locales
This commit is contained in:
parent
dd56446241
commit
d7a6b7374f
3 changed files with 2 additions and 11 deletions
10
gulpfile.js
10
gulpfile.js
|
@ -287,7 +287,7 @@ function dist_yarn() {
|
|||
|
||||
function dist_locale() {
|
||||
return gulp.src('./locales/**/*', { base: 'locales'})
|
||||
.pipe(gulp.dest(`${DIST_DIR}_locales`));
|
||||
.pipe(gulp.dest(`${DIST_DIR}locales`));
|
||||
}
|
||||
|
||||
function dist_libraries() {
|
||||
|
@ -826,7 +826,6 @@ function cordova_dist() {
|
|||
if (platforms.indexOf('android') !== -1) {
|
||||
distTasks.push(clean_cordova);
|
||||
distTasks.push(cordova_copy_www);
|
||||
distTasks.push(cordova_locales_www);
|
||||
distTasks.push(cordova_resources);
|
||||
distTasks.push(cordova_include_www);
|
||||
distTasks.push(cordova_copy_src);
|
||||
|
@ -873,13 +872,6 @@ function cordova_copy_www() {
|
|||
return gulp.src(`${DIST_DIR}**`, { base: DIST_DIR })
|
||||
.pipe(gulp.dest(`${CORDOVA_DIST_DIR}www/`));
|
||||
}
|
||||
function cordova_locales_www(cb) {
|
||||
fs.renameSync(`${CORDOVA_DIST_DIR}www/_locales`, `${CORDOVA_DIST_DIR}www/i18n`);
|
||||
gulp.src(`${CORDOVA_DIST_DIR}www/js/localization.js`)
|
||||
.pipe(replace('/_locales', './i18n'))
|
||||
.pipe(gulp.dest(`${CORDOVA_DIST_DIR}www/js`));
|
||||
cb();
|
||||
}
|
||||
function cordova_resources() {
|
||||
return gulp.src('assets/android/**')
|
||||
.pipe(gulp.dest(`${CORDOVA_DIST_DIR}resources/android/`));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue