Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Revert "DPROD-3065/Translation-new-homepage-performance (#6867)"
Browse files Browse the repository at this point in the history
This reverts commit b8ad900.
  • Loading branch information
habib-deriv authored Feb 2, 2024
1 parent b8ad900 commit 3508c47
Show file tree
Hide file tree
Showing 210 changed files with 9,121 additions and 11,689 deletions.
5 changes: 0 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@
"pattern": "features/components/templates/layout",
"group": "parent",
"position": "after"
},
{
"pattern": "features/components/quill/quill-layout",
"group": "parent",
"position": "after"
}
],
"newlines-between": "never"
Expand Down
206 changes: 74 additions & 132 deletions crowdin/messages.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ import {
updateURLAsPerUserLanguage,
} from 'common/utility'
import './static/css/noto-sans-arabic.css'
import 'swiper/swiper-bundle.min.css'
import 'features/styles/app.scss'
import './static/css/ubuntu.css'
import './static/css/global.css'
import '@deriv-com/blocks/style.css';
import '@deriv-com/blocks/style.css'
import '@deriv-com/components/style.css'

const is_browser = typeof window !== 'undefined'

Expand Down
28 changes: 0 additions & 28 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,15 @@ const language_config = require(`./i18n-config.js`)
const language_config_en = require(`./i18n-config-en.js`)
const path = require('path')
const { copyLibFiles } = require('@builder.io/partytown/utils')
const { exec } = require('child_process')
const webpack = require('webpack')
const StylelintPlugin = require('stylelint-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')

const translations_cache = {}

function OSFunction() {
this.execCommand = function (cmd, callback) {
exec(cmd, (error, stdout) => {
if (error) {
console.error(`exec error: ${error}`)
return
}

callback(stdout)
})
}
}

const fetchTrustpilotData = () => {
// Trustpilot on-build data fetching
const os = new OSFunction()

os.execCommand('node scripts/trustpilot.js', (returnvalue) => {
console.log(returnvalue)
})
}

exports.onPreBuild = async () => {
await copyLibFiles(path.join(__dirname, 'static', '~partytown'))
}
exports.onPreInit = () => {
// Update truspilot.json file with latest data
fetchTrustpilotData()
}

// Based upon https://github.com/gatsbyjs/gatsby/tree/master/examples/using-i18n

const BuildPage = (page, actions) => {
Expand Down
Loading

0 comments on commit 3508c47

Please sign in to comment.