Skip to content

Commit ceeb995

Browse files
authored
Drop u:locale (#1102)
1 parent dc7b060 commit ceeb995

File tree

6 files changed

+2
-63
lines changed

6 files changed

+2
-63
lines changed

docs/goals.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ The MessageFormat Working Group is a working group of the CLDR-TC.
6363
- percent formatting
6464
- Deliver at least as Technical Preview (v49) and Stable (v50) all draft functions and options
6565
- `:unit`
66-
- the `u:locale` option
6766
- Deliver as Technical Preview additional functions to support significant additional functionality.
6867
Such functions could include: lists, ranges, relative time, inflection.
6968
- Deliver as Technical Preview a machine-readable function description format or syntax.

spec/functions/string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The function `:string` has no _options_.
3232
> For example:
3333
>
3434
> ```
35-
> {$s :string u:dir=ltr u:locale=fr-CA}
35+
> {$s :string u:dir=ltr u:id=my-string}
3636
> ```
3737
3838
##### `:string` Resolved Value

spec/u-namespace.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -40,48 +40,6 @@ or can be resolved to a string without error.
4040
For other values, a _Bad Option_ error is emitted
4141
and the `u:id` _option_ and its _option value_ are ignored.
4242
43-
#### `u:locale`
44-
45-
> [!IMPORTANT]
46-
> This _option_ has a status of **Draft**.
47-
> It is proposed for inclusion in a future release and is not Stable.
48-
49-
Implementations MAY support this option.
50-
51-
Replaces the _locale_ defined in the _function context_ for this _expression_.
52-
53-
A comma-delimited list consisting of
54-
well-formed [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
55-
language tags,
56-
or an implementation-defined list of such tags.
57-
58-
If this _option_ is set on _markup_, a _Bad Option_ error is emitted
59-
and the `u:locale` _option_ and its _option value_ are ignored.
60-
61-
During processing, the `u:locale` _option_
62-
MUST be removed from the resolved mapping of _options_
63-
before calling the _function handler_.
64-
65-
Values matching the following ABNF are always accepted:
66-
```abnf
67-
u-locale-option = unicode_bcp47_locale_id *(o "," o unicode_bcp47_locale_id)
68-
```
69-
using `unicode_bcp47_locale_id` as defined for
70-
[Unicode Locale Identifier](https://unicode.org/reports/tr35/tr35.html#unicode_bcp47_locale_id).
71-
72-
Implementations MAY support additional language tags,
73-
such as private-use or grandfathered tags,
74-
or tags using `_` instead of `-` as a separator.
75-
When the value of `u:locale` is set by a _variable_,
76-
implementations MAY support non-string values otherwise representing locales.
77-
78-
Implementations MAY emit a _Bad Option_ error
79-
and MAY ignore the `u:locale` _option_ and _option value_ as a whole
80-
or any of the entries in the list of language tags.
81-
This might be because the locale specified is not supported
82-
or because the language tag is not well-formed,
83-
not valid, or some other reason.
84-
8543
#### `u:dir`
8644
8745
Implementations SHOULD support this option.

test/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ This may include one or more of the following:
7979
| `:percent` | The [:percent](../spec/functions/number.md#the-percent-function) function |
8080
| `u:dir` | The [u:dir](../spec/u-namespace.md#udir) option |
8181
| `u:id` | The [u:id](../spec/u-namespace.md#uid) option |
82-
| `u:locale` | The [u:locale](../spec/u-namespace.md#ulocale) option |
8382
8483
## Test Functions
8584

test/schemas/v0/tests.schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@
207207
":currency",
208208
":percent",
209209
"u:dir",
210-
"u:id",
211-
"u:locale"
210+
"u:id"
212211
]
213212
}
214213
},

test/tests/u-options.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,6 @@
2828
{ "type": "markup", "kind": "close", "name": "ns:tag" }
2929
]
3030
},
31-
{
32-
"tags": ["u:locale"],
33-
"src": "hello {4.2 :number u:locale=fr}",
34-
"exp": "hello 4,2"
35-
},
36-
{
37-
"tags": ["u:dir", "u:locale"],
38-
"src": "{#tag u:dir=rtl u:locale=ar}content{/ns:tag}",
39-
"exp": "content",
40-
"expErrors": [{ "type": "bad-option" }],
41-
"expParts": [
42-
{ "type": "markup", "kind": "open", "name": "tag" },
43-
{ "type": "text", "value": "content" },
44-
{ "type": "markup", "kind": "close", "name": "ns:tag" }
45-
]
46-
},
4731
{
4832
"tags": ["u:dir", "u:id"],
4933
"src": "hello {world :string u:dir=ltr u:id=foo}",

0 commit comments

Comments
 (0)