swiftlang/swift-foundation

Consider exposing common `Locale.NumberingSystem` as static variables

Ouverte

#1 052 ouverte le 19 nov. 2024

 (0 commentaire) (0 réaction) (0 personne assignée)Swift (253 forks)auto 404
API Changeenhancementgood first issue

Métriques du dépôt

Stars
 (2 673 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur