docs: update Localization.md

pull/4868/head
mehmet-erim 5 years ago
parent 8e478adca2
commit e3c81fed14

@ -207,19 +207,16 @@ If you see the error like above, you should pass the `cultureNameToLocaleFileNam
@NgModule({
imports: [
// other imports
CoreModule.forRoot({
CoreModule.forRoot({
// other options
cultureNameToLocaleFileNameMapping: {
"X": "Y",
"AnotherCultureNameDefinedInDotnet": "AnotherLocaleFileNameDefinedInAngular"
"DotnetCultureName": "AngularLocaleFileName",
"pt-BR": "pt" // example
}
})
//...
```
- The key indicated by "X" above represents the culture name defined in .NET (e.g. "en-US").
- The value indicated by "Y" above represents the locale file name defined in Angular (e.g. "en").
See the [all locale files in Angular](https://github.com/angular/angular/tree/master/packages/common/locales)

Loading…
Cancel
Save