From 888f5cc71d751f084d53bc17f9bbc3fa0e2374d2 Mon Sep 17 00:00:00 2001 From: Addison Phillips Date: Mon, 18 Nov 2024 07:14:04 -0800 Subject: [PATCH] Internationalize the `:math` example Let's not embarrass ourselves, eh? The trailing selector should use the keyword `one` instead of the exact match `1`, in part because other languages need to explode (or contract, e.g. in languages such as `ja` or `zh`) the matrix. --- spec/registry.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/registry.md b/spec/registry.md index 75c470e2eb..9e6392fdf2 100644 --- a/spec/registry.md +++ b/spec/registry.md @@ -390,10 +390,10 @@ numeric values to which a mathematical operation has been applied. > .input {$like_count :integer} > .local $others_count = {$like_count :math subtract=1} > .match $like_count $others_count -> 0 * {{Your post has no likes.}} -> 1 * {{{$name} liked your post.}} -> * 1 {{{$name} and one other person liked your post.}} -> * * {{{$name} and {$others_count} other people liked your post.}} +> 0 * {{Your post has no likes.}} +> 1 * {{{$name} liked your post.}} +> * one {{{$name} and {$others_count} other user liked your post.}} +> * * {{{$name} and {$others_count} other users liked your post.}} > ``` #### Operands