From cf2b1207c3a2cad1114d70c2ac12de08b9346361 Mon Sep 17 00:00:00 2001 From: moss-bryophyta <261561981+moss-bryophyta@users.noreply.github.com> Date: Fri, 10 Jul 2026 08:01:52 -0700 Subject: [PATCH] fix: correct typos in withGTConfig reference - 'ie' -> 'e.g.,' in render method descriptions (style guide punctuation) - 'vercel' -> 'Vercel' (product capitalization) - '_batchInterval' -> 'batchInterval' (matches documented prop name) - remove trailing comma in gt.config.json example (invalid JSON) --- docs/en-US/next/api/config/with-gt-config.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en-US/next/api/config/with-gt-config.mdx b/docs/en-US/next/api/config/with-gt-config.mdx index 16ed49f0..b7657896 100644 --- a/docs/en-US/next/api/config/with-gt-config.mdx +++ b/docs/en-US/next/api/config/with-gt-config.mdx @@ -256,13 +256,13 @@ If the translation is cached, response time is too low to justify loading behavi ### Render methods * `skeleton`: Renders a fragment. * `replace`: Renders content in default language while waiting. - * `default`: For locales with the same language (ie `en-US` and `en-GB`) behaves like replace. For locales with different languages (ie `en-US` and `fr`), behaves like skeleton. + * `default`: For locales with the same language (e.g., `en-US` and `en-GB`) behaves like replace. For locales with different languages (e.g., `en-US` and `fr`), behaves like skeleton. ### Timeout Timeouts only apply to runtime translations, or translations that need to be performed on demand as they have not been cached. Timeouts are set to 8 seconds by default. -This design decision is to facilitate vercel users who have a default 10-second timeout for serverless functions on the free plan. +This design decision is to facilitate Vercel users who have a default 10-second timeout for serverless functions on the free plan. --- @@ -275,7 +275,7 @@ If the translation takes longer than 8 seconds, the method will time out and ren ```json title="gt.config.json" { "defaultLocale": "en-US", - "locales": ["en-US", "es", "fr"], + "locales": ["en-US", "es", "fr"] } ``` @@ -299,7 +299,7 @@ export default withGTConfig(nextConfig, { ## Notes * `withGTConfig` integrates GT translation functionality into your Next.js app and must be used in the root configuration file. * Parameters like `apiKey` and `projectId` can be set directly in the configuration or as environment variables. - * Advanced parameters like `renderSettings` and `_batchInterval` allow fine-grained control over translation behavior and performance. + * Advanced parameters like `renderSettings` and `batchInterval` allow fine-grained control over translation behavior and performance. ## Next steps * Add [translation to your CD process](/docs/next/tutorials/quickdeploy).