Skip to content

Commit f17da75

Browse files
committed
Merge remote-tracking branch 'origin/blog/bcp47/extensions'
2 parents 325d51f + 05865c4 commit f17da75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/posts/2024-bcp47-extensions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: IETF BCP 47 - extensions
33
date: 2024-09-11
44
tags:
55
- bcp47
6-
draft: true
76
---
87

98
This is the second post in a discussion of [BCP 47][] Language Tags, in which we will explore extensions to BCP 47, both current and future.
@@ -33,12 +32,13 @@ The -u- extensions provide a variety of additional dimensions to language tags.
3332

3433
Most of the other subtags affect how software processing or producing text using [CLDR][] locale data operates. For example:
3534

36-
- `en-u-tz-uslax` uses a UN LOCODE (in this case US-LAX, which, yes, refers to [Los Angeles International Airport](https://airportcodes.aero/lax)) that identifies, very compactly, the time zone `America/Los_Angeles`. This type of a subtag is useful to convey user preferences, such as time zone, in environments (such as a browser context) where there otherwise isn't a way to convey such information.
3735

3836
- `en-US-u-hc-h24` specifies that you want 24 hour time, despite the preferred value for `en-US` as normally indicating 12 hour time. Again, this allows for a level of user 'customization' and could be passed to a an API performing date formatting.
3937

4038
- `cs-u-co-search` specifies the Czech language, but that a different collator is requested - one optimized for searching text, instead of sorting. This useful as an argument to an API function.
4139

40+
- `en-u-tz-uslax` uses a UN LOCODE (in this case US-LAX, which, yes, refers to [Los Angeles International Airport](https://airportcodes.aero/lax)) that identifies, very compactly, the time zone `America/Los_Angeles`. This type of subtag could convey user preferences, such as time zone, in environments (such as a browser context) where there otherwise isn't a way to convey such information. For other environments, it might be preferable to pass the time zone in some other way.
41+
4242
See [the whole list][u-key-type] for the latest details. CLDR continues to add new keys periodically as need arises.
4343

4444
## `t`: Transform extensions

0 commit comments

Comments
 (0)