Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update lighthouse-core/lib/i18n/swap-locale.js
Co-Authored-By: Brendan Kenny <[email protected]>
  • Loading branch information
paulirish and brendankenny committed May 28, 2019
commit 627f7be12c4ecd2c074ba4ea9ebecabfc1186226
2 changes: 1 addition & 1 deletion lighthouse-core/lib/i18n/swap-locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const i18n = require('./i18n.js');
* @return {LH.Result}
*/
function swapLocale(lhr, requestedLocale) {
// copy LHR to avoid mutating provided LHR
// Copy LHR to avoid mutating provided LHR.
lhr = JSON.parse(JSON.stringify(lhr));

const locale = i18n.lookupLocale(requestedLocale);
Expand Down