build-tools/src/po-to-json/index.js
Function removeInvalidTranslations
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function removeInvalidTranslations(jsonFilePath, filename) {
var translations = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8'));
const KEY_REGEX = /{{ ?(.+?) ?}}/g;