Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider exposing common Locale.NumberingSystem as static variables #1052

Open
itingliu opened this issue Nov 19, 2024 · 0 comments
Open

Consider exposing common Locale.NumberingSystem as static variables #1052

itingliu opened this issue Nov 19, 2024 · 0 comments
Labels
API Change Any changes to Foundation's public API surface enhancement New feature or request good first issue Good for newcomers

Comments

@itingliu
Copy link
Contributor

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

@itingliu itingliu added enhancement New feature or request good first issue Good for newcomers API Change Any changes to Foundation's public API surface labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Change Any changes to Foundation's public API surface enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant