Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/en-US/next/guides/ssg.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ This error typically occurs when you have a `layout.tsx`, `page.tsx`, etc. file
To fix this issue, make sure that all of your route segment files (so typically `layout.tsx` and `page.tsx`) are descendants of the `/[locale]` directory.

<Callout type="info">
During SSG, the only way to resolve a user's locale is via the URL path.
**Note:** During SSG, the only way to resolve a user's locale is via the URL path.
So, if we try to execute a `layout.tsx` file outside of the `/[locale]` directory, it will error because it does not have access to this root param.
The unintuitive part about this is that when a page renders, so does every `layout.tsx` file wrapping it.
So, you could have added SSG to a `page.tsx` file that is very much inside of the `/[locale]` directory, but there is actually a `layout.tsx` file somewhere else responsible for the error.
Expand Down
2 changes: 1 addition & 1 deletion docs/en-US/react-core-linter/guides/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Quickstart guide for the React Core Linter
---

<Callout type="warn">
This package is v0.1.0 and not stable. Subject to breaking changes.
**Experimental:** This package is v0.1.0 and not stable. Subject to breaking changes.
</Callout>

This is an ESLint plugin designed to be used with any of our i18n libraries, `gt-react`, `gt-next`, or `gt-react-native`.
Expand Down
2 changes: 1 addition & 1 deletion docs/en-US/react-core-linter/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: ESLint plugin for GT React libraries
---

<Callout type="warn">
This package is v0.1.0 and not stable. Subject to breaking changes.
**Experimental:** This package is v0.1.0 and not stable. Subject to breaking changes.
</Callout>

`@generaltranslation/react-core-linter` is an ESLint plugin that catches common implementation errors across GT's React libraries: `gt-react`, `gt-next`, and `gt-react-native`.
Expand Down
Loading