Skip to content

Unable to find zh-Hant-TW or zh-TW locale in @angular/common #54114

@doggy8088

Description

@doggy8088

Which @angular/* package(s) are the source of the bug?

common

Is this a regression?

No

Description

When I using i18n support in Angular, I can't use zh-TW for my locale. When building, there is always produce a warning for me.

Please provide a link to a minimal reproduction of the bug

doggy8088/ng-i18n-demo@1acddbd

Please provide the exception or error you saw

image

▲ [WARNING] Locale data for 'zh-TW' cannot be found. Using locale data for 'zh'. [plugin angular-locale-data]     

    angular:polyfills:angular:polyfills:2:7:
      2 │ import 'angular:locale/data:zh-TW';
        ╵        ~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.1.1
Node: 20.10.0
Package Manager: npm 10.2.3
OS: win32 x64

Angular: 17.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------       
@angular-devkit/architect       0.1701.1
@angular-devkit/build-angular   17.1.1
@angular-devkit/core            17.1.1
@angular-devkit/schematics      17.1.1
@schematics/angular             17.1.1
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.3

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area: i18nIssues related to localization and internationalization

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions