swiftlang/swift-foundation

Consider exposing common `Locale.NumberingSystem` as static variables

Open

#1,052 opened on Nov 19, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Swift (253 forks)auto 404
API Changeenhancementgood first issue

Repository metrics

Stars
 (2,673 stars)
PR merge metrics
 (PR metrics pending)

Description

Locale.LanguageCode and Locale.ScriptCode defines common language and script codes as static vars for easy access, such as

@_alwaysEmitIntoClient
public static var danish: Locale.LanguageCode { Locale.LanguageCode("da") }

We can consider exposing common Locale.NumberingSystem as well.

Discussion: https://forums.swift.org/t/fou-locale-components-language-and-language-components/54084/17

Contributor guide