Skip to content

add fr trad for hot-reload.md#2105

Merged
dunglas merged 5 commits intophp:mainfrom
Ehyiah:trad-fr-hot-reload
Mar 10, 2026
Merged

add fr trad for hot-reload.md#2105
dunglas merged 5 commits intophp:mainfrom
Ehyiah:trad-fr-hot-reload

Conversation

@Ehyiah
Copy link
Contributor

@Ehyiah Ehyiah commented Dec 29, 2025

Hello, there doesn't seem to be an open MR for translating the new hot reload feature. Here's what I can offer.

@Ehyiah Ehyiah force-pushed the trad-fr-hot-reload branch from 1410da5 to 588f952 Compare December 29, 2025 15:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds French documentation for FrankenPHP’s Hot Reload feature, aligning the docs/fr set with the existing English docs/hot-reload.md content.

Changes:

  • Added a full French translation of the Hot Reload documentation page (docs/fr/hot-reload.md).
  • Included configuration examples and client-side integration details (Mercure + idiomorph / frankenphp-hot-reload) in French.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Bien que le serveur détecte les modifications, le navigateur doit s'abonner à ces événements pour mettre à jour la page.
FrankenPHP expose l'URL du Hub Mercure à utiliser pour s'abonner aux modifications de fichiers via la variable d'environnement `$_SERVER['FRANKENPHP_HOT_RELOAD']`.

Une bibliothèque JavaScript pratique, [frankenphp-hot-reload](https://www.npmjs.com/package/frankenphp-hot-reload), est également disponible pour gérer la logique côté client.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Une bibliothèque JavaScript pratique" feels weird, like an automatic translation. I would remove "pratique" to sound more natural.

FrankenPHP expose l'URL du Hub Mercure à utiliser pour s'abonner aux modifications de fichiers via la variable d'environnement `$_SERVER['FRANKENPHP_HOT_RELOAD']`.

Une bibliothèque JavaScript pratique, [frankenphp-hot-reload](https://www.npmjs.com/package/frankenphp-hot-reload), est également disponible pour gérer la logique côté client.
Pour l'utiliser, ajoutez ce qui suit à votre layout principal :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with "ce qui suit". We would better say "le code suivant" or something like that

Si vous exécutez votre application en [mode Worker](worker.md), le script de votre application reste en mémoire.
Cela signifie que les modifications de votre code PHP ne seront pas reflétées immédiatement, même si le navigateur se recharge.

Pour la meilleure expérience développeur, vous devriez combiner `hot_reload` avec [la sous-directive `watch` dans la directive `worker`](config.md#surveillance-des-modifications-de-fichier).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use "vous devriez", but "il est possible de combiner" for example, which sounds less robotic as well

}
```

### Comment ça fonctionne
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, it sounds a bit to oral, doesn't it? I would go for "Fonctionnement interne" or similar


FrankenPHP inclut une fonctionnalité de **hot reload** intégrée, conçue pour améliorer considérablement l'expérience développeur.

![Mercure](../hot-reload.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we use Mercure here?

@dunglas dunglas enabled auto-merge (squash) March 9, 2026 15:44
@dunglas dunglas force-pushed the trad-fr-hot-reload branch from 9fa4bc3 to 601d07a Compare March 9, 2026 15:46
Ehyiah and others added 5 commits March 10, 2026 10:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com>
Updated text for clarity and improved security warnings regarding hot reload feature.

Signed-off-by: Kévin Dunglas <kevin@dunglas.fr>
Signed-off-by: Kévin Dunglas <kevin@dunglas.fr>
@dunglas dunglas force-pushed the trad-fr-hot-reload branch from 601d07a to 849ce61 Compare March 10, 2026 09:55
@dunglas dunglas disabled auto-merge March 10, 2026 09:55
@dunglas dunglas merged commit 53dfd2f into php:main Mar 10, 2026
1 check passed
@dunglas
Copy link
Member

dunglas commented Mar 10, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants