Browse Source

docs: update Localization.md

pull/4868/head
mehmet-erim 6 years ago
parent
commit
e3c81fed14
  1. 9
      docs/en/UI/Angular/Localization.md

9
docs/en/UI/Angular/Localization.md

@ -207,19 +207,16 @@ If you see the error like above, you should pass the `cultureNameToLocaleFileNam
@NgModule({ @NgModule({
imports: [ imports: [
// other imports // other imports
CoreModule.forRoot({ CoreModule.forRoot({
// other options // other options
cultureNameToLocaleFileNameMapping: { cultureNameToLocaleFileNameMapping: {
"X": "Y", "DotnetCultureName": "AngularLocaleFileName",
"AnotherCultureNameDefinedInDotnet": "AnotherLocaleFileNameDefinedInAngular" "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) See the [all locale files in Angular](https://github.com/angular/angular/tree/master/packages/common/locales)

Loading…
Cancel
Save