mirror of
https://github.com/angular/angular.git
synced 2026-12-06 05:09:14 -05:00
Moves the `src/tools` folder of the `@angular/localize` package into the top-level of the package. This is in preparation of actually exposing an entry-point for the tools that can be accessed using `@angular/localize/tools`. We want to expose such an entry-point because the CLI currently deep-imports into various places of the tools, but this will not work well with strict ESM because the localize tool depends on the v13 strict ESM packages like the `@angular/compiler` or `@angular/compiler-cli`. PR Close #43431
11 lines
675 B
JavaScript
11 lines
675 B
JavaScript
var name = 'World';
|
|
var message = $localize`Hello, ${name}!`;
|
|
var other = $localize(__makeTemplateObject(['try', 'me'], ['try', 'me']), 40 + 2);
|
|
var customMessage = $localize`:@@custom-id:Custom id message`;
|
|
var legacyMessage =
|
|
$localize`:␟1234567890123456789012345678901234567890␟12345678901234567890:Legacy id message`;
|
|
var customAndLegacyMessage =
|
|
$localize`:@@custom-id-2␟1234567890123456789012345678901234567890␟12345678901234567890:Custom and legacy message`;
|
|
var containers = $localize`pre${'<span>'}:START_TAG_SPAN:inner-pre${'<b>'}:START_BOLD_TEXT:bold${
|
|
'</b>'}:CLOSE_BOLD_TEXT:inner-post${'</span>'}:CLOSE_TAG_SPAN:post`;
|