Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .changeset/script-subtag-locales.md

This file was deleted.

7 changes: 7 additions & 0 deletions examples/bilingual/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @edoxen/browser-example-bilingual

## 0.0.19

### Patch Changes

- Updated dependencies [2448c29]
- @edoxen/browser@0.11.0

## 0.0.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/bilingual/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edoxen/browser-example-bilingual",
"version": "0.0.18",
"version": "0.0.19",
"private": true,
"type": "module",
"description": "Bilingual @edoxen/browser example — EN + FR content via per-field LocalizedString.",
Expand Down
7 changes: 7 additions & 0 deletions examples/minimal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @edoxen/browser-example-minimal

## 0.0.19

### Patch Changes

- Updated dependencies [2448c29]
- @edoxen/browser@0.11.0

## 0.0.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edoxen/browser-example-minimal",
"version": "0.0.18",
"version": "0.0.19",
"private": true,
"type": "module",
"description": "Minimal @edoxen/browser example — single-locale, decisions-only.",
Expand Down
7 changes: 7 additions & 0 deletions examples/multibody/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @edoxen/browser-example-multibody

## 0.0.19

### Patch Changes

- Updated dependencies [2448c29]
- @edoxen/browser@0.11.0

## 0.0.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/multibody/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edoxen/browser-example-multibody",
"version": "0.0.18",
"version": "0.0.19",
"private": true,
"type": "module",
"description": "Multi-body @edoxen/browser example — CIML + Conference + DC badges.",
Expand Down
7 changes: 7 additions & 0 deletions examples/standalone/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @edoxen/browser-example-standalone

## 0.0.19

### Patch Changes

- Updated dependencies [2448c29]
- @edoxen/browser@0.11.0

## 0.0.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edoxen/browser-example-standalone",
"version": "0.0.18",
"version": "0.0.19",
"private": true,
"type": "module",
"description": "Standalone-mode @edoxen/browser showcase — no astro.config: edoxen.config.ts + data + src/styles/override.css theming demo.",
Expand Down
25 changes: 25 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @edoxen/browser

## 0.11.0

### Minor Changes

- 2448c29: Script-subtag locale support.

`normalizeUiLocale` now preserves the script subtag instead of truncating to the first 3 chars. Composite codes like `zho-Hant`, `zh-Hans-SG`, `fr-CA` resolve to distinct buckets so consumers can register Simplified + Traditional as separate routed locales (`/zho-Hans/…`, `/zho-Hant/…`).

`t()`, `meetingTypeLabel()`, and `isRtl()` walk a fallback chain (`zho-hant` → `zho` → English), so script-specific overrides win, the base-language built-in is the next fallback, then English.

### Changed

- `normalizeUiLocale` — new `toCanonical` helper that handles 2-char folding (`en` → `eng`), bare 3-char passthrough, and composite codes (`zh-Hant` → `zho-hant`).
- `t()` — walks the locale chain (`localeChain(code)`) so script-bearing locales fall back to the base language before English.
- `meetingTypeLabel()` — walks the same chain for `terminology.meetingTypes` overrides.
- `isRtl()` — walks the chain so `ara-Latn` still resolves to RTL via `ara`.

### Added

- `src/i18n/script-subtag.spec.ts` — 10 tests covering normalization, fallback, per-script override, RTL detection.

### Migration notes

No breaking changes for existing consumers. Bare 3-char codes (`eng`, `fra`) behave identically. 2-char codes (`en`, `fr`) still fold to 3-char. The only behavioral change is that composite codes (`zho-Hant`) no longer collapse to their base — which was the documented limitation this lifts.

## 0.10.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edoxen/browser",
"version": "0.10.0",
"version": "0.11.0",
"description": "Astro-based browser for edoxen YAML data — drop in your data and ship a resolutions archive site.",
"type": "module",
"license": "BSD-2-Clause",
Expand Down
Loading