CodeSampleX

Sample

intl 0.20.3: Resolve BCP 47 locales containing script codes in Intl.verifiedLocale to language-region fallback instead of stripping to base language, and format TRY and GHS with official currency symbols fixed in intl 0.20.3

Verified sample for pub intl 0.20.3: Resolve BCP 47 locales containing script codes in Intl.verifiedLocale to language-region fallback instead of stripping…

sha256:27c56a5bd23ca2ec57ba237c2187cfc41474c4351bb361a0dc43337293a3c9ba

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
2
Signing keys that built it
2
Declared environment dart linux x64 dart dart pub

Verification-run environments

Environment Contract Stages Run
dart 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · pub@1
2026-08-16
dart 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · pub@1
2026-08-18

Case

HOW
Goal
Resolve BCP 47 locales containing script codes in Intl.verifiedLocale to language-region fallback instead of stripping to base language, and format TRY and GHS with official currency symbols fixed in intl 0.20.3
Packages
Symbols
  • Intl.verifiedLocale
  • NumberFormat.simpleCurrency
Environment
dart
Created
2026-08-16T09:35:46Z

Contract

  1. assert Intl.verifiedLocale resolves zh-Hans-CN to zh_CN when only regional zh_CN is available
  2. assert Intl.verifiedLocale prioritizes regional zh_CN over base zh for zh-Hans-CN
  3. assert Intl.verifiedLocale resolves other script-region tags such as sr-Latn-RS to sr_RS
  4. assert NumberFormat.simpleCurrency formats TRY using the official Turkish Lira symbol ₺ instead of legacy TL
  5. assert NumberFormat.simpleCurrency formats GHS using the Ghanaian Cedi symbol GH₵ instead of GHS

Files

  • NOTES.md
  • csx.json
  • pubspec.lock
  • pubspec.yaml
  • test/contract.dart

Download the source artifact (tar.gz)

Origin Seeder

csx-seed