From 8cbe8099ddeccf89dba248dc0d15b541a1eb4c66 Mon Sep 17 00:00:00 2001 From: Julio Bitencourt Date: Wed, 5 Jul 2023 11:53:07 -0300 Subject: [PATCH 1/2] Update registration.md to show terms of use and privacy policy documents localization Update the registration.md file in order to incorporate localization for the terms of use and privacy policy documents. --- 3.x/features/registration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3.x/features/registration.md b/3.x/features/registration.md index 0b5c756..adf6781 100644 --- a/3.x/features/registration.md +++ b/3.x/features/registration.md @@ -100,6 +100,8 @@ use Laravel\Jetstream\Features; Next, you may write your terms of service / privacy policy documents by modifying your application's `resources/markdown/terms.md` and `resources/markdown/policy.md` files. +To leverage Laravel's user-friendly localization feature, simply suffix your files with the desired locale and let Laravel Jetstream handle the rendering seamlessly. For instance, if you want to provide the documents in Spanish, name the file as terms.es.md. + During registration, Jetstream will automatically ask the user to approve these documents. When the user clicks on the link to view the documents, Jetstream will use [Tailwind's typography plug-in](https://tailwindcss.com/docs/typography-plugin) to render the Markdown into beautifully formatted prose. ## Email Verification From 8dea51f8fce139d8db6055aa3cd32077b5d4da8f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 5 Jul 2023 18:08:41 +0200 Subject: [PATCH 2/2] Update registration.md --- 3.x/features/registration.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3.x/features/registration.md b/3.x/features/registration.md index adf6781..a5f8155 100644 --- a/3.x/features/registration.md +++ b/3.x/features/registration.md @@ -100,10 +100,12 @@ use Laravel\Jetstream\Features; Next, you may write your terms of service / privacy policy documents by modifying your application's `resources/markdown/terms.md` and `resources/markdown/policy.md` files. -To leverage Laravel's user-friendly localization feature, simply suffix your files with the desired locale and let Laravel Jetstream handle the rendering seamlessly. For instance, if you want to provide the documents in Spanish, name the file as terms.es.md. - During registration, Jetstream will automatically ask the user to approve these documents. When the user clicks on the link to view the documents, Jetstream will use [Tailwind's typography plug-in](https://tailwindcss.com/docs/typography-plugin) to render the Markdown into beautifully formatted prose. +#### Terms & Policy Localization + +To serve localized versions of your terms of service and privacy policy, you may suffix the files with the desired locale, such as `terms.es.md`. Jetstream will automatically serve the correct version of the file based on the current locale that is configured for the application. + ## Email Verification Laravel Jetstream includes support for requiring that a newly registered user verify their email address. However, support for this feature is disabled by default. To enable this feature, you should uncomment the relevant entry in the `features` configuration item of your application's `config/fortify.php` configuration file: