We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ba94e commit 48e0253Copy full SHA for 48e0253
lib/utils.js
@@ -1,6 +1,6 @@
1
const fs = require('fs-extra');
2
const path = require('path');
3
-const glob = require('glob');
+const { glob } = require('glob');
4
const crypto = require('crypto');
5
const flatten = require('lodash/flatten');
6
@@ -28,12 +28,12 @@ module.exports = {
28
if(locale === undefined || locale.startsWith('en')) return [];
29
30
const withDialect = ['pt', 'zh'];
31
-
+
32
let lang = locale;
33
if(lang.includes('.')) {
34
lang = lang.substring(0, lang.indexOf('.'));
35
}
36
37
// Check for language code & country code.
38
let ll = lang, cc = '';
39
if(lang.includes('_')) {
0 commit comments