Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/en-US/next/api/config/with-gt-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand All @@ -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"]
}
```

Expand All @@ -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).
Loading