This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Quick copy and paste solution for pseudo-localization | |
Based on from https://github.com/tryggvigy/pseudo-localization, go there for options and customisations | |
1 - Open dev tools | |
2 - Paste this code | |
3 - Text on the page should be pseudo-localized | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Returns the value of a property in a nested object. | |
* | |
* @param {Object} sourceObject | |
* @param {string} dotNotationPath | |
* @returns {*} | |
* | |
*/ | |
function getPropValue(sourceObject, dotNotationPath) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This Next.js custom Head component adds a flag to enable/disable the | |
* insertion of link preload for the JS files. | |
* | |
* Basically it's a copy/paste from "next.js/packages/next/pages/_document.js" | |
* (source: https://github.com/zeit/next.js) in which I've extracted the Head component. | |
* | |
* Tries to solve https://github.com/zeit/next.js/issues/4634 | |
* | |
* Next.js version 7.0.2 |