From 34a1011003f306884a419044776827d802e5c1ae Mon Sep 17 00:00:00 2001 From: Johan Gorter Date: Tue, 3 Jan 2023 22:06:00 +0100 Subject: [PATCH] Locales use "fr-FR" format, just "fr" doesn't work --- docs/defining-blocks.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/defining-blocks.md b/docs/defining-blocks.md index 4fb9a829e12b..0b950479e01a 100644 --- a/docs/defining-blocks.md +++ b/docs/defining-blocks.md @@ -120,7 +120,7 @@ For example, ```typescript-ignore //% block="square $x" -//% block.loc.fr="$x au carré" +//% block.loc.fr-FR="$x au carré" export function square(x: number): number {} ``` @@ -137,9 +137,9 @@ PARAM.loc.LOCALE = parameter jsdoc @param x the number to square **/ //% block="square $x" -//% block.loc.fr="$x au carré" -//% jsdoc.loc.fr="Calcule le carré de x" -//% x.loc.fr="le nombre" +//% block.loc.fr-FR="$x au carré" +//% jsdoc.loc.fr-FR="Calcule le carré de x" +//% x.loc.fr-FR="le nombre" export function square(x: number): number {} ``` @@ -896,4 +896,4 @@ A few tips gathered while designing various APIs for the Block Editor. * **Anything that snaps together will be tried by the user**: your runtime should deal with invalid input with graceful degradation rather than abrupt crashes. Some users will try to snap anything together - get ready for it. * **OO is cumbersome** in blocks: we recommend using a C-like APIs -- just function -- rather than OO classes. It maps better to blocks. -* **Keep the number of blocks small**: there's only so much space in the toolbox. Be specific about each API you want to see in blocks. \ No newline at end of file +* **Keep the number of blocks small**: there's only so much space in the toolbox. Be specific about each API you want to see in blocks.