From 849d5fac02eedc747f3593ebcd42750dfe77d0cd Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Tue, 3 Nov 2020 15:20:35 +0300 Subject: [PATCH] docs: update UI/Angular/Localization.md --- docs/en/UI/Angular/Localization.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/en/UI/Angular/Localization.md b/docs/en/UI/Angular/Localization.md index 1efdbca359..b69fccbed2 100644 --- a/docs/en/UI/Angular/Localization.md +++ b/docs/en/UI/Angular/Localization.md @@ -219,18 +219,21 @@ If you see an error like this, you should pass the `cultureNameLocaleFileMap` pr See [all locale files in Angular](https://github.com/angular/angular/tree/master/packages/common/locales). -## Adding new culture +## Adding a New Culture ```js //app.module.ts -import { storeLocaleData } from '@abp/ng.core'; +import { storeLocaleData } from '@abp/ng.core/locale'; import( /* webpackChunkName: "_locale-your-locale-js"*/ /* webpackMode: "eager" */ '@angular/common/locales/your-locale.js' ).then(m => storeLocaleData(m.default, 'your-locale')); ``` + +> Note: In order for the new locale to be created as a chunk, the application must be restarted. + ## See Also * [Localization in ASP.NET Core](../../Localization.md)