Update translationOverrides doc to reference translation file
Some checks failed
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled

This commit is contained in:
Konstantin Wohlwend 2024-11-25 00:05:05 +01:00
parent 83d0339b34
commit 7ee4858ac7

View File

@ -13,7 +13,7 @@ For detailed usage instructions, please refer to the manual section of the [setu
- `children`: `React.ReactNode` - The child components to be wrapped by the StackProvider.
- `app`: `StackClientApp | StackServerApp` - The Stack app instance to be used.
- `lang` (optional): `"en-US" | "de-DE" | "es-419" | "es-ES" | "fr-CA" | "fr-FR" | "it-IT" | "pt-BR" | "pt-PT"` - The language to be used for translations.
- `translationOverrides` (optional): `Record<string, string>` - A mapping of English translations to translated equivalents. These will take priority over the translations from the language specified in the `lang` property. Note that the keys are case-sensitive.
- `translationOverrides` (optional): `Record<string, string>` - A mapping of English translations to translated equivalents. These will take priority over the translations from the language specified in the `lang` property. Note that the keys are case-sensitive. You can find a full list of supported strings [on GitHub](https://github.com/stack-auth/stack/blob/dev/packages/stack/src/generated/quetzal-translations.ts).
## Example