From fe5cca24282bbb63210e4b4c437b825749aed2a6 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 3 Jul 2024 11:54:03 +0200 Subject: [PATCH] Add note about l10n --- docs/reference-guides/block-api/block-metadata.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/block-api/block-metadata.md b/docs/reference-guides/block-api/block-metadata.md index b3070438b50a1d..a747ab5f76aa01 100644 --- a/docs/reference-guides/block-api/block-metadata.md +++ b/docs/reference-guides/block-api/block-metadata.md @@ -460,7 +460,9 @@ Starting with version 6.7, it is possible to specify a PHP file in `block.json` { "variations": "file:./variations.php" } ``` -That PHP file is expected to `return` an array that contains the block variations. For example: +That PHP file is expected to `return` an array that contains the block variations. Strings found in the variations returned from the PHP file will not be localized automatically; instead, use the `__()` function as usual. + +For example: ```php