Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs-extra');
const path = require('path');
const glob = require('glob');
const { glob } = require('glob');
const crypto = require('crypto');
const flatten = require('lodash/flatten');

Expand Down Expand Up @@ -28,12 +28,12 @@
if(locale === undefined || locale.startsWith('en')) return [];

const withDialect = ['pt', 'zh'];

let lang = locale;
if(lang.includes('.')) {
lang = lang.substring(0, lang.indexOf('.'));
}

// Check for language code & country code.
let ll = lang, cc = '';
if(lang.includes('_')) {
Expand All @@ -53,7 +53,7 @@
return path.extname(file) === '.md';
},

// TODO: remove this

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 16.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 18.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (macos-latest, 16.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (macos-latest, 18.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (windows-latest, 16.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (windows-latest, 18.x)

Unexpected 'todo' comment: 'TODO: remove this'

Check warning on line 56 in lib/utils.js

View workflow job for this annotation

GitHub Actions / build (windows-latest, 20.x)

Unexpected 'todo' comment: 'TODO: remove this'
commandSupportedOn(platform) {
return (command) => {
return command.platform.indexOf(platform) >= 0
Expand Down
Loading
Loading