Skip to content

Consider exposing common Locale.NumberingSystem as static variables #1052

Open
@itingliu

Description

@itingliu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    API ChangeAny changes to Foundation's public API surfaceenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions