Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a037ba7

Browse files
authored
Add use case for source expression attribute (#772)
* Add use case for "source" attribute * Add self-referential PR link * Fix typo
1 parent 893203d commit a037ba7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

exploration/expression-attributes.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Status: **Proposed**
99
<dd>@eemeli</dd>
1010
<dt>First proposed</dt>
1111
<dd>2023-08-27</dd>
12-
<dt>Pull Request</dt>
12+
<dt>Pull Requests</dt>
1313
<dd><a href="https://github.com/unicode-org/message-format-wg/pull/458">#458</a></dd>
14+
<dd><a href="https://github.com/unicode-org/message-format-wg/pull/772">#772</a></dd>
1415
</dl>
1516
</details>
1617

@@ -96,6 +97,17 @@ At least the following expression attributes should be considered:
9697
- `canCopy`, `canDelete`, `canOverlap`, `canReorder`, etc. — Flags supported by
9798
XLIFF 2 inline elements
9899
100+
- Attributes used to represent features of other localization syntaxes
101+
when parsed to a MessageFormat 2 data model.
102+
103+
- `source` — A literal value representing the source syntax of an expression.
104+
105+
> Example selector representing an Xcode stringsdict `NSStringLocalizedFormatKey` value:
106+
>
107+
> ```
108+
> .match {$count :number @source=|%#@count@|}
109+
> ```
110+
99111
## Requirements
100112
101113
Attributes can be assigned to any expression,

0 commit comments

Comments
 (0)