Skip to content

Commit 250e299

Browse files
mheveryAndrewKushnir
authored andcommitted
refactor(core): break i18n.ts into smaller files (angular#38368)
This commit contains no changes to code. It only breaks `i18n.ts` file into `i18n.ts` + `i18n_apply.ts` + `i18n_parse.ts` + `i18n_postprocess.ts` for easier maintenance. PR Close angular#38368
1 parent 8f708b5 commit 250e299

File tree

17 files changed

+1641
-1527
lines changed

17 files changed

+1641
-1527
lines changed

goldens/circular-deps/packages.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,9 +1758,10 @@
17581758
"packages/core/src/render3/index.ts"
17591759
],
17601760
[
1761-
"packages/core/src/render3/i18n.ts",
1761+
"packages/core/src/render3/i18n/i18n_apply.ts",
17621762
"packages/core/src/render3/interfaces/type_checks.ts",
1763-
"packages/core/src/render3/index.ts"
1763+
"packages/core/src/render3/index.ts",
1764+
"packages/core/src/render3/instructions/i18n.ts"
17641765
],
17651766
[
17661767
"packages/core/src/render3/interfaces/container.ts",

goldens/size-tracking/integration-payloads.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"bundle": "TODO(i): we should define ngDevMode to false in Closure, but --define only works in the global scope.",
6363
"bundle": "TODO(i): (FW-2164) TS 3.9 new class shape seems to have broken Closure in big ways. The size went from 169991 to 252338",
6464
"bundle": "TODO(i): after removal of tsickle from ngc-wrapped / ng_package, we had to switch to SIMPLE optimizations which increased the size from 252338 to 1198917, see PR#37221 and PR#37317 for more info",
65-
"bundle": 1213769
65+
"bundle": 1214317
6666
}
6767
}
6868
}

packages/core/src/application_module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {ComponentFactoryResolver} from './linker';
2121
import {Compiler} from './linker/compiler';
2222
import {NgModule} from './metadata';
2323
import {SCHEDULER} from './render3/component_ref';
24-
import {setLocaleId} from './render3/i18n';
24+
import {setLocaleId} from './render3/i18n/i18n_locale_id';
2525
import {NgZone} from './zone';
2626

2727
declare const $localize: {locale?: string};

packages/core/src/application_ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {InternalViewRef, ViewRef} from './linker/view_ref';
3030
import {isComponentResourceResolutionQueueEmpty, resolveComponentResources} from './metadata/resource_loading';
3131
import {assertNgModuleType} from './render3/assert';
3232
import {ComponentFactory as R3ComponentFactory} from './render3/component_ref';
33-
import {setLocaleId} from './render3/i18n';
33+
import {setLocaleId} from './render3/i18n/i18n_locale_id';
3434
import {setJitOptions} from './render3/jit/jit_options';
3535
import {NgModuleFactory as R3NgModuleFactory} from './render3/ng_module_ref';
3636
import {publishDefaultGlobalUtils as _publishDefaultGlobalUtils} from './render3/util/global_utils';

0 commit comments

Comments
 (0)