From 34f9baace2c7f9508312c53d63d11c15e93f1951 Mon Sep 17 00:00:00 2001 From: bridiver Date: Fri, 28 Feb 2020 09:11:04 -0700 Subject: [PATCH] temporary workaround for https://github.com/brave/brave-browser/issues/7800 the root of the problem should still be fixed as specified in the issue --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 8d16c47c27..91fa0d58fa 100755 --- a/lib/util.js +++ b/lib/util.js @@ -3,7 +3,6 @@ const { spawn, spawnSync } = require('child_process') const config = require('./config') const fs = require('fs-extra') const crypto = require('crypto') -const autoGeneratedBraveToChromiumMapping = Object.assign({}, require('./l10nUtil').autoGeneratedBraveToChromiumMapping) const os = require('os') const fixPywin32 = (options = {}) => { @@ -160,6 +159,7 @@ const util = { const braveAndroidJavaStringsTranslationsDir = path.join(config.projects['brave-core'].dir, 'browser', 'ui', 'android', 'strings', 'translations') let fileMap = new Set(); + const autoGeneratedBraveToChromiumMapping = Object.assign({}, require('./l10nUtil').autoGeneratedBraveToChromiumMapping) // The following 3 entries we map to the same name, not the chromium equivalent name for copying back autoGeneratedBraveToChromiumMapping[path.join(braveAppDir, 'brave_strings.grd')] = path.join(chromeAppDir, 'brave_strings.grd') autoGeneratedBraveToChromiumMapping[path.join(braveAppDir, 'settings_brave_strings.grdp')] = path.join(chromeAppDir, 'settings_brave_strings.grdp')