Skip to content

Commit

Permalink
Language Paths work
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Feb 10, 2025
1 parent 9ca4914 commit 102df86
Show file tree
Hide file tree
Showing 3 changed files with 902 additions and 1,066 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test": "vitest run"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.740.0",
"@aws-sdk/client-s3": "^3.744.0",
"@xylabs/assert": "^4.5.1",
"@xylabs/delay": "^4.5.1",
"@xylabs/exists": "^4.5.1",
Expand All @@ -65,46 +65,46 @@
"@xylabs/sdk-meta": "^4.5.1",
"@xyo-network/axios": "^2.91.3",
"async-mutex": "^0.5.0",
"date-fns": "^3.6.0",
"date-fns": "^4.1.0",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"he": "^1.2.0",
"http-status-codes": "^2.3.0",
"lru-cache": "^11.0.2",
"mime": "^4.0.6",
"minimatch": "^10.0.1",
"puppeteer": "^23.11.1",
"puppeteer": "^24.2.0",
"serve-static": "^1.16.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@babel/core": "^7.26.7",
"@babel/preset-env": "^7.26.7",
"@babel/core": "^7.26.8",
"@babel/preset-env": "^7.26.8",
"@types/express": "^4.17.21",
"@types/he": "^1.2.3",
"@types/jest-image-snapshot": "^6.4.0",
"@types/node": "^22.13.0",
"@types/node": "^22.13.1",
"@types/serve-static": "^1.15.7",
"@types/supertest": "^6.0.2",
"@vitest/snapshot": "^3.0.4",
"@vitest/snapshot": "^3.0.5",
"@xylabs/eslint-config": "^3.15.16",
"@xylabs/eslint-config-flat": "^4.2.6",
"@xylabs/eslint-config-flat": "^5.0.23",
"@xylabs/eslint-config-react": "^3.15.16",
"@xylabs/ts-scripts-yarn3": "^4.2.6",
"@xylabs/tsconfig": "^4.2.6",
"@xylabs/tsconfig-dom": "^4.2.6",
"@xylabs/ts-scripts-yarn3": "^5.0.23",
"@xylabs/tsconfig": "^5.0.23",
"@xylabs/tsconfig-dom": "^5.0.23",
"@xylabs/vitest-extended": "^4.5.1",
"@xylabs/vitest-matchers": "^4.5.1",
"axios": "^1.7.9",
"dotenv": "^16.4.7",
"eslint": "^9.19.0",
"eslint": "^9.20.0",
"eslint-plugin-sonarjs": "^3.0.1",
"jest-image-snapshot": "^6.4.0",
"jest-serializer-html": "^7.1.0",
"nodemon": "^3.1.9",
"supertest": "^7.0.0",
"typescript": "^5.7.3",
"vitest": "^3.0.4"
"vitest": "^3.0.5"
},
"peerDependencies": {
"axios": "^1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const getProxyOriginalHandler = (baseDir: string) => {
updated = mergeDocumentHead(html, updatedHead)
}
const language = getLanguage(path, languageMap)
updated.replace(/<html lang="en">/, `<html lang="${language}">`)
updated = updated.replace('<html lang="en">', `<html lang="${language}">`)
res.type('html').set('Cache-Control', indexHtmlCacheControlHeader).send(updated)
}
// eslint-disable-next-line @typescript-eslint/no-misused-promises
Expand Down
Loading

0 comments on commit 102df86

Please sign in to comment.