Skip to content

How to define country code in the base locale arb files? #158974

@yanshouwang

Description

@yanshouwang

Use case

I'm developing an app which provide en-US and zh-CN language. Since the intl need a base locale(without the script code or country code), I have to use app_en.arb and app_zh.arb as the fileName, and the @@locale have to be en and zh, but in this way the country code in the generated Locale is missed while the country code is used in some logic. Is it possible to set the @@locale to be en-US and zh-CN in this case?

I found there is a discuss about this, #92731,but the commit seems to be reverted?

Proposal

Make it possibe for developers define country code in the base locale arb files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions