Changelog nói:góc thay đổi 5 Breaking - bằng tay nhập khẩu locale
By default Angular now only contains locale data for the language en-US, if you set the value of LOCALE_ID to another locale, you will have to import new locale data for this language because we don’t use the intl API anymore.
Nhưng tôi không thể tìm thấy bất kỳ tài liệu tham khảo những gì "nhập khẩu" có nghĩa là, làm thế nào để làm điều đó và tôi nhận được
xxx.html:30 ERROR Error: Missing locale data for the locale "de-CH"
tôi cấu hình locale với:
import { LOCALE_ID } from '@angular/core';
và
providers: [
{ provide: LOCALE_ID, useValue: 'de-CH' }
],
điều duy nhất tôi có thể đoán nó kiễu góc (v 5) vẫn còn ở đầu RC tài liệu có thể cập nhật –