mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
a18981ab7b
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
18 lines
469 B
TypeScript
18 lines
469 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {FormatOptions} from '../../../src/extract/translation_files/format_options';
|
|
|
|
export function toAttributes(options: FormatOptions) {
|
|
let result = '';
|
|
for (const option in options) {
|
|
result += ` ${option}="${options[option]}"`;
|
|
}
|
|
return result;
|
|
}
|