Skip to content

Commit c16b424

Browse files
committed
update BUILD_LOCALES var to NEXT_PUBLIC_BUILD_LOCALES
1 parent b7dfd28 commit c16b424

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ yarn dev
9595
- Open this directory in your favorite text editor / IDE, and see your changes live by visiting `localhost:3000` from your browser
9696
- Pro Tip:
9797
- Explore scripts within `package.json` for more build options
98-
- Get **faster** production builds by building only one language. E.g. in your `.env` file, set `BUILD_LOCALES=en` to build the content only in English
99-
- To build the site in other selected languages too, you need to set them in `BUILD_LOCALES`, eg: `BUILD_LOCALES=en,es` if you also want to build only English (required) and Spanish.
100-
- To build all languages, simply comment this line out with a hash mark, eg: `# BUILD_LOCALES=`
98+
- Get **faster** production builds by building only one language. E.g. in your `.env` file, set `NEXT_PUBLIC_BUILD_LOCALES=en` to build the content only in English
99+
- To build the site in other selected languages too, you need to set them in `NEXT_PUBLIC_BUILD_LOCALES`, eg: `NEXT_PUBLIC_BUILD_LOCALES=en,es` if you also want to build only English (required) and Spanish.
100+
- To build all languages, simply comment this line out with a hash mark, eg: `# NEXT_PUBLIC_BUILD_LOCALES=`
101101

102102
By default the script will build all the languages (complete list in `i18n.config.json`).
103103

@@ -168,7 +168,7 @@ Learn more about how we review pull requests [here](docs/review-process.md).
168168

169169
- To help with verification we request GitHub contributors connect their GitHub account with their Discord account (Discord > Settings > Connections > GitHub). Crowdin contributors will be verified directly through Crowdin by our team.
170170

171-
If you haven't contributed yet and would like to earn a POAP/OATs to show your loyalty to the Ethereum space, head over to the [issues](https://github.com/ethereum/ethereum-org-website/issues/) tab to get started! If you would like to contribute to translations check out our [Translation Program](https://ethereum.org/en/contributing/translation-program/).
171+
If you haven't contributed yet and would like to earn a POAP/OATs to show your loyalty to the Ethereum space, head over to the [issues](https://github.com/ethereum/ethereum-org-website/issues/) tab to get started! If you would like to contribute to translations check out our [Translation Program](https://ethereum.org/en/contributing/translation-program/).
172172

173173
<hr style="margin-top: 3em; margin-bottom: 3em;">
174174

src/pages/api/revalidate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default async function handler(
1010
return res.status(401).json({ message: "Invalid secret" })
1111
}
1212

13-
const BUILD_LOCALES = process.env.BUILD_LOCALES
13+
const BUILD_LOCALES = process.env.NEXT_PUBLIC_BUILD_LOCALES
1414
// Supported locales defined in `i18n.config.json`
1515
const locales = BUILD_LOCALES
1616
? BUILD_LOCALES.split(",")

src/scripts/crowdin-import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ const langsSummary: string = summary.reduce(
407407
log("Empty buckets:", trackers.emptyBuckets)
408408
if (summary.length) {
409409
console.table(summary)
410-
console.log("Langs to test:", `\nBUILD_LOCALES=en${langsSummary}`)
410+
console.log("Langs to test:", `\nNEXT_PUBLIC_BUILD_LOCALES=en${langsSummary}`)
411411
console.log("🎉 Crowdin import complete.")
412412
} else {
413413
console.warn("Nothing imported, see instruction at top of crowdin-imports.ts")

0 commit comments

Comments
 (0)