Skip to content

Commit 8a608a9

Browse files
authored
Internationalize the :math example (#945)
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.
1 parent f3344b5 commit 8a608a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/registry.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,10 @@ numeric values to which a mathematical operation has been applied.
390390
> .input {$like_count :integer}
391391
> .local $others_count = {$like_count :math subtract=1}
392392
> .match $like_count $others_count
393-
> 0 * {{Your post has no likes.}}
394-
> 1 * {{{$name} liked your post.}}
395-
> * 1 {{{$name} and one other person liked your post.}}
396-
> * * {{{$name} and {$others_count} other people liked your post.}}
393+
> 0 * {{Your post has no likes.}}
394+
> 1 * {{{$name} liked your post.}}
395+
> * one {{{$name} and {$others_count} other user liked your post.}}
396+
> * * {{{$name} and {$others_count} other users liked your post.}}
397397
> ```
398398
399399
#### Operands

0 commit comments

Comments
 (0)