Revert "refactor: replace i18n HTTP requests with build-time bundling (#22422)" (#22496)

This reverts commit 163c7ff791.
This commit is contained in:
Benny Joo
2025-07-14 22:49:25 +00:00
committed by GitHub
parent fe4946a269
commit c8a52b78e1
62 changed files with 87 additions and 175 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const translationKeyRegex = /(?<!\w)(?:t\(("[^"]*")(?:,\s*\{[^}]*\})?\)|i18nKey=
/** @type {import("i18n-unused/src/types/index.ts").RunOptions} */
const config = {
// localesPath: localePath, // uncomment to run on all locales (to calculate kb savings)
localesPath: path.join("./packages/lib/server/locales", "/en"),
localesPath: path.join("./apps/website", "/public/static/locales", "/en"),
srcPath: "./apps/website",
srcExtensions: ["ts", "tsx"],
translationContextSeparator: ":",