mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(localize): convert scripts within packages/localize to relative imports (#60540)
This commit updates scripts within `packages/localize` to relative imports as a prep work to the upcoming infra updates. PR Close #60540
This commit is contained in:
committed by
Alex Rickabaugh
parent
af67334fe5
commit
6a207ebfb0
@@ -4,15 +4,23 @@
|
||||
|
||||
```ts
|
||||
|
||||
import { ɵ$localize as $localize } from '@angular/localize';
|
||||
import { ɵLocalizeFn as LocalizeFn } from '@angular/localize';
|
||||
import { ɵTranslateFn as TranslateFn } from '@angular/localize';
|
||||
// @public
|
||||
const $localize_2: LocalizeFn;
|
||||
export { $localize_2 as $localize }
|
||||
|
||||
export { $localize }
|
||||
// @public (undocumented)
|
||||
export interface LocalizeFn {
|
||||
// (undocumented)
|
||||
(messageParts: TemplateStringsArray, ...expressions: readonly any[]): string;
|
||||
locale?: string;
|
||||
translate?: TranslateFn;
|
||||
}
|
||||
|
||||
export { LocalizeFn }
|
||||
|
||||
export { TranslateFn }
|
||||
// @public (undocumented)
|
||||
export interface TranslateFn {
|
||||
// (undocumented)
|
||||
(messageParts: TemplateStringsArray, expressions: readonly any[]): [TemplateStringsArray, readonly any[]];
|
||||
}
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
|
||||
@@ -7,17 +7,12 @@
|
||||
import { AbsoluteFsPath } from '@angular/compiler-cli/private/localize';
|
||||
import { Element as Element_2 } from '@angular/compiler';
|
||||
import { Logger } from '@angular/compiler-cli/private/localize';
|
||||
import { MessageId } from '@angular/localize';
|
||||
import { NodePath } from '@babel/core';
|
||||
import { ParseError } from '@angular/compiler';
|
||||
import { PathManipulation } from '@angular/compiler-cli/private/localize';
|
||||
import { PluginObj } from '@babel/core';
|
||||
import { ReadonlyFileSystem } from '@angular/compiler-cli/private/localize';
|
||||
import { types } from '@babel/core';
|
||||
import { ɵParsedMessage } from '@angular/localize';
|
||||
import { ɵParsedTranslation } from '@angular/localize';
|
||||
import { ɵSourceLocation } from '@angular/localize';
|
||||
import { ɵSourceMessage } from '@angular/localize';
|
||||
|
||||
// @public
|
||||
export class ArbTranslationParser implements TranslationParser<ArbJsonObject> {
|
||||
@@ -31,14 +26,14 @@ export class ArbTranslationParser implements TranslationParser<ArbJsonObject> {
|
||||
export class ArbTranslationSerializer implements TranslationSerializer {
|
||||
constructor(sourceLocale: string, basePath: AbsoluteFsPath, fs: PathManipulation);
|
||||
// (undocumented)
|
||||
serialize(messages: ɵParsedMessage[]): string;
|
||||
serialize(messages: ParsedMessage[]): string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export function buildLocalizeReplacement(messageParts: TemplateStringsArray, substitutions: readonly types.Expression[]): types.Expression;
|
||||
|
||||
// @public
|
||||
export function checkDuplicateMessages(fs: PathManipulation, messages: ɵParsedMessage[], duplicateMessageHandling: DiagnosticHandlingStrategy, basePath: AbsoluteFsPath): Diagnostics;
|
||||
export function checkDuplicateMessages(fs: PathManipulation, messages: ParsedMessage[], duplicateMessageHandling: DiagnosticHandlingStrategy, basePath: AbsoluteFsPath): Diagnostics;
|
||||
|
||||
// @public
|
||||
export type DiagnosticHandlingStrategy = 'error' | 'warning' | 'ignore';
|
||||
@@ -71,14 +66,14 @@ export function isGlobalIdentifier(identifier: NodePath<types.Identifier>): bool
|
||||
export class LegacyMessageIdMigrationSerializer implements TranslationSerializer {
|
||||
constructor(_diagnostics: Diagnostics);
|
||||
// (undocumented)
|
||||
serialize(messages: ɵParsedMessage[]): string;
|
||||
serialize(messages: ParsedMessage[]): string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export function makeEs2015TranslatePlugin(diagnostics: Diagnostics, translations: Record<string, ɵParsedTranslation>, { missingTranslation, localizeName }?: TranslatePluginOptions, fs?: PathManipulation): PluginObj;
|
||||
export function makeEs2015TranslatePlugin(diagnostics: Diagnostics, translations: Record<string, ParsedTranslation>, { missingTranslation, localizeName }?: TranslatePluginOptions, fs?: PathManipulation): PluginObj;
|
||||
|
||||
// @public
|
||||
export function makeEs5TranslatePlugin(diagnostics: Diagnostics, translations: Record<string, ɵParsedTranslation>, { missingTranslation, localizeName }?: TranslatePluginOptions, fs?: PathManipulation): PluginObj;
|
||||
export function makeEs5TranslatePlugin(diagnostics: Diagnostics, translations: Record<string, ParsedTranslation>, { missingTranslation, localizeName }?: TranslatePluginOptions, fs?: PathManipulation): PluginObj;
|
||||
|
||||
// @public
|
||||
export function makeLocalePlugin(locale: string, { localizeName }?: TranslatePluginOptions): PluginObj;
|
||||
@@ -87,7 +82,7 @@ export function makeLocalePlugin(locale: string, { localizeName }?: TranslatePlu
|
||||
export class MessageExtractor {
|
||||
constructor(fs: ReadonlyFileSystem, logger: Logger, { basePath, useSourceMaps, localizeName }: ExtractionOptions);
|
||||
// (undocumented)
|
||||
extractMessages(filename: string): ɵParsedMessage[];
|
||||
extractMessages(filename: string): ParsedMessage[];
|
||||
}
|
||||
|
||||
// @public
|
||||
@@ -102,23 +97,23 @@ export class SimpleJsonTranslationParser implements TranslationParser<SimpleJson
|
||||
export class SimpleJsonTranslationSerializer implements TranslationSerializer {
|
||||
constructor(sourceLocale: string);
|
||||
// (undocumented)
|
||||
serialize(messages: ɵParsedMessage[]): string;
|
||||
serialize(messages: ParsedMessage[]): string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export function translate(diagnostics: Diagnostics, translations: Record<string, ɵParsedTranslation>, messageParts: TemplateStringsArray, substitutions: readonly any[], missingTranslation: DiagnosticHandlingStrategy): [TemplateStringsArray, readonly any[]];
|
||||
export function translate(diagnostics: Diagnostics, translations: Record<string, ParsedTranslation>, messageParts: TemplateStringsArray, substitutions: readonly any[], missingTranslation: DiagnosticHandlingStrategy): [TemplateStringsArray, readonly any[]];
|
||||
|
||||
// @public
|
||||
export function unwrapExpressionsFromTemplateLiteral(quasi: NodePath<types.TemplateLiteral>, fs?: PathManipulation): [types.Expression[], (ɵSourceLocation | undefined)[]];
|
||||
export function unwrapExpressionsFromTemplateLiteral(quasi: NodePath<types.TemplateLiteral>, fs?: PathManipulation): [types.Expression[], (SourceLocation | undefined)[]];
|
||||
|
||||
// @public
|
||||
export function unwrapMessagePartsFromLocalizeCall(call: NodePath<types.CallExpression>, fs?: PathManipulation): [TemplateStringsArray, (ɵSourceLocation | undefined)[]];
|
||||
export function unwrapMessagePartsFromLocalizeCall(call: NodePath<types.CallExpression>, fs?: PathManipulation): [TemplateStringsArray, (SourceLocation | undefined)[]];
|
||||
|
||||
// @public
|
||||
export function unwrapMessagePartsFromTemplateLiteral(elements: NodePath<types.TemplateElement>[], fs?: PathManipulation): [TemplateStringsArray, (ɵSourceLocation | undefined)[]];
|
||||
export function unwrapMessagePartsFromTemplateLiteral(elements: NodePath<types.TemplateElement>[], fs?: PathManipulation): [TemplateStringsArray, (SourceLocation | undefined)[]];
|
||||
|
||||
// @public
|
||||
export function unwrapSubstitutionsFromLocalizeCall(call: NodePath<types.CallExpression>, fs?: PathManipulation): [types.Expression[], (ɵSourceLocation | undefined)[]];
|
||||
export function unwrapSubstitutionsFromLocalizeCall(call: NodePath<types.CallExpression>, fs?: PathManipulation): [types.Expression[], (SourceLocation | undefined)[]];
|
||||
|
||||
// @public
|
||||
export class Xliff1TranslationParser implements TranslationParser<XmlTranslationParserHint> {
|
||||
@@ -132,7 +127,7 @@ export class Xliff1TranslationParser implements TranslationParser<XmlTranslation
|
||||
export class Xliff1TranslationSerializer implements TranslationSerializer {
|
||||
constructor(sourceLocale: string, basePath: AbsoluteFsPath, useLegacyIds: boolean, formatOptions?: FormatOptions, fs?: PathManipulation);
|
||||
// (undocumented)
|
||||
serialize(messages: ɵParsedMessage[]): string;
|
||||
serialize(messages: ParsedMessage[]): string;
|
||||
}
|
||||
|
||||
// @public
|
||||
@@ -147,14 +142,14 @@ export class Xliff2TranslationParser implements TranslationParser<XmlTranslation
|
||||
export class Xliff2TranslationSerializer implements TranslationSerializer {
|
||||
constructor(sourceLocale: string, basePath: AbsoluteFsPath, useLegacyIds: boolean, formatOptions?: FormatOptions, fs?: PathManipulation);
|
||||
// (undocumented)
|
||||
serialize(messages: ɵParsedMessage[]): string;
|
||||
serialize(messages: ParsedMessage[]): string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export class XmbTranslationSerializer implements TranslationSerializer {
|
||||
constructor(basePath: AbsoluteFsPath, useLegacyIds: boolean, fs?: PathManipulation);
|
||||
// (undocumented)
|
||||
serialize(messages: ɵParsedMessage[]): string;
|
||||
serialize(messages: ParsedMessage[]): string;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
ɵ$localize as $localize,
|
||||
ɵLocalizeFn as LocalizeFn,
|
||||
ɵTranslateFn as TranslateFn,
|
||||
} from '@angular/localize';
|
||||
} from '../index';
|
||||
|
||||
export {$localize, LocalizeFn, TranslateFn};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
// Ensure that `$localize` is loaded to the global scope.
|
||||
import '@angular/localize/init';
|
||||
import '../init';
|
||||
|
||||
import {clearTranslations, loadTranslations} from '../index';
|
||||
import {computeMsgId, MessageId, TargetMessage} from '../src/utils';
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {AbsoluteFsPath, PathManipulation} from '@angular/compiler-cli/private/localize';
|
||||
import {MessageId, ɵParsedMessage} from '@angular/localize';
|
||||
import {MessageId, ɵParsedMessage} from '../../../index';
|
||||
|
||||
import {DiagnosticHandlingStrategy, Diagnostics} from '../diagnostics';
|
||||
import {serializeLocationPosition} from '../source_file_utils';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
SourceFile,
|
||||
SourceFileLoader,
|
||||
} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../index';
|
||||
import {transformSync} from '@babel/core';
|
||||
|
||||
import {makeEs2015ExtractPlugin} from './source_files/es2015_extract_plugin';
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
Logger,
|
||||
PathManipulation,
|
||||
} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage} from '../../../index';
|
||||
|
||||
import {DiagnosticHandlingStrategy, Diagnostics} from '../diagnostics';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {PathManipulation} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage, ɵparseMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵparseMessage} from '../../../../index';
|
||||
import {NodePath, PluginObj, types as t} from '@babel/core';
|
||||
|
||||
import {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {PathManipulation} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage, ɵparseMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵparseMessage} from '../../../../index';
|
||||
import {NodePath, PluginObj, types as t} from '@babel/core';
|
||||
|
||||
import {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {AbsoluteFsPath, PathManipulation} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
import {TranslationSerializer} from './translation_serializer';
|
||||
import {consolidateMessages, hasLocation} from './utils';
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {MessageId, ɵParsedMessage, ɵSourceMessage} from '@angular/localize';
|
||||
import {MessageId, ɵParsedMessage, ɵSourceMessage} from '../../../../index';
|
||||
|
||||
import {TranslationSerializer} from './translation_serializer';
|
||||
import {consolidateMessages} from './utils';
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵParsedMessage as ParsedMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage as ParsedMessage} from '../../../../index';
|
||||
import {Diagnostics} from '../../diagnostics';
|
||||
import {TranslationSerializer} from './translation_serializer';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵParsedMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage} from '../../../../index';
|
||||
|
||||
/**
|
||||
* Implement this interface to provide a class that can render messages into a translation file.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {MessageId, ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {MessageId, ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
|
||||
/**
|
||||
* Consolidate messages into groups that have the same id.
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import {
|
||||
getFileSystem,
|
||||
PathManipulation,
|
||||
} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
|
||||
import {FormatOptions, validateOptions} from './format_options';
|
||||
import {extractIcuPlaceholders} from './icu_parsing';
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import {
|
||||
getFileSystem,
|
||||
PathManipulation,
|
||||
} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
|
||||
import {FormatOptions, validateOptions} from './format_options';
|
||||
import {extractIcuPlaceholders} from './icu_parsing';
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
getFileSystem,
|
||||
PathManipulation,
|
||||
} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
|
||||
import {extractIcuPlaceholders} from './icu_parsing';
|
||||
import {TranslationSerializer} from './translation_serializer';
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
ɵParsedTranslation,
|
||||
ɵSourceLocation,
|
||||
ɵtranslate,
|
||||
} from '@angular/localize';
|
||||
} from '../../index';
|
||||
import {BabelFile, NodePath, types as t} from '@babel/core';
|
||||
|
||||
import {DiagnosticHandlingStrategy, Diagnostics} from './diagnostics';
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {getFileSystem, PathManipulation} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedTranslation} from '@angular/localize';
|
||||
import {ɵParsedTranslation} from '../../../../index';
|
||||
import {NodePath, PluginObj, types as t} from '@babel/core';
|
||||
|
||||
import {Diagnostics} from '../../diagnostics';
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {getFileSystem, PathManipulation} from '@angular/compiler-cli/private/localize';
|
||||
import {ɵParsedTranslation} from '@angular/localize';
|
||||
import {ɵParsedTranslation} from '../../../../index';
|
||||
import {NodePath, PluginObj, types as t} from '@babel/core';
|
||||
|
||||
import {Diagnostics} from '../../diagnostics';
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵmakeParsedTranslation, ɵParsedTranslation} from '@angular/localize';
|
||||
import {ɵmakeParsedTranslation, ɵParsedTranslation} from '../../../../../index';
|
||||
|
||||
import {MessageRenderer} from './message_renderer';
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {MessageId, ɵparseTranslation, ɵSourceMessage} from '@angular/localize';
|
||||
import {MessageId, ɵparseTranslation, ɵSourceMessage} from '../../../../../index';
|
||||
|
||||
import {Diagnostics} from '../../../diagnostics';
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {Element, ParseError} from '@angular/compiler';
|
||||
import {ɵParsedTranslation} from '@angular/localize';
|
||||
import {ɵParsedTranslation} from '../../../../../index';
|
||||
|
||||
import {
|
||||
MessageSerializer,
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {MessageId, ɵParsedTranslation, ɵparseTranslation} from '@angular/localize';
|
||||
import {MessageId, ɵParsedTranslation, ɵparseTranslation} from '../../../../../index';
|
||||
import {extname} from 'path';
|
||||
|
||||
import {Diagnostics} from '../../../diagnostics';
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {MessageId, ɵParsedTranslation} from '@angular/localize';
|
||||
import {MessageId, ɵParsedTranslation} from '../../../../../index';
|
||||
|
||||
import {Diagnostics} from '../../../diagnostics';
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
PathSegment,
|
||||
ReadonlyFileSystem,
|
||||
} from '@angular/compiler-cli/private/localize';
|
||||
import {MessageId, ɵParsedTranslation} from '@angular/localize';
|
||||
import {MessageId, ɵParsedTranslation} from '../../../index';
|
||||
|
||||
import {Diagnostics} from '../diagnostics';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
PathSegment,
|
||||
relativeFrom,
|
||||
} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {ɵParsedMessage} from '@angular/localize/private';
|
||||
import {ɵParsedMessage} from '../../../../private';
|
||||
import {transformSync} from '@babel/core';
|
||||
|
||||
import {makeEs5ExtractPlugin} from '../../../src/extract/source_files/es5_extract_plugin';
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import {
|
||||
PathManipulation,
|
||||
} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {runInEachFileSystem} from '@angular/compiler-cli/src/ngtsc/file_system/testing';
|
||||
import {ɵParsedMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage} from '../../../../index';
|
||||
|
||||
import {ArbTranslationSerializer} from '../../../src/extract/translation_files/arb_translation_serializer';
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵParsedMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage} from '../../../../index';
|
||||
|
||||
import {SimpleJsonTranslationSerializer} from '../../../src/extract/translation_files/json_translation_serializer';
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵParsedMessage} from '@angular/localize';
|
||||
import {ɵParsedMessage} from '../../../../index';
|
||||
import {Diagnostics} from '../../../src/diagnostics';
|
||||
import {LegacyMessageIdMigrationSerializer} from '../../../src/extract/translation_files/legacy_message_id_migration_serializer';
|
||||
import {mockMessage} from './mock_message';
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {absoluteFrom} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {ɵParsedMessage} from '@angular/localize';
|
||||
import {MessageId, SourceLocation} from '@angular/localize/src/utils';
|
||||
import {ɵParsedMessage} from '../../../../index';
|
||||
import {MessageId, SourceLocation} from '../../../../src/utils';
|
||||
|
||||
export interface MockMessageOptions {
|
||||
customId?: string;
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
import {absoluteFrom} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {runInEachFileSystem} from '@angular/compiler-cli/src/ngtsc/file_system/testing';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
|
||||
import {FormatOptions} from '../../../src/extract/translation_files/format_options';
|
||||
import {Xliff1TranslationSerializer} from '../../../src/extract/translation_files/xliff1_translation_serializer';
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
import {absoluteFrom} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {runInEachFileSystem} from '@angular/compiler-cli/src/ngtsc/file_system/testing';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
|
||||
import {FormatOptions} from '../../../src/extract/translation_files/format_options';
|
||||
import {Xliff2TranslationSerializer} from '../../../src/extract/translation_files/xliff2_translation_serializer';
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import {
|
||||
PathManipulation,
|
||||
} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {runInEachFileSystem} from '@angular/compiler-cli/src/ngtsc/file_system/testing';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '@angular/localize';
|
||||
import {ɵParsedMessage, ɵSourceLocation} from '../../../../index';
|
||||
|
||||
import {XmbTranslationSerializer} from '../../../src/extract/translation_files/xmb_translation_serializer';
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
getFileSystem,
|
||||
PathManipulation,
|
||||
} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {ɵmakeTemplateObject} from '@angular/localize';
|
||||
import {ɵmakeTemplateObject} from '../../index';
|
||||
import babel, {NodePath, TransformOptions, template, types as t} from '@babel/core';
|
||||
import _generate from '@babel/generator';
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {FileSystem, getFileSystem} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {ɵcomputeMsgId, ɵparseTranslation} from '@angular/localize';
|
||||
import {ɵParsedTranslation} from '@angular/localize/private';
|
||||
import {ɵcomputeMsgId, ɵparseTranslation} from '../../../../index';
|
||||
import {ɵParsedTranslation} from '../../../../private';
|
||||
import {transformSync} from '@babel/core';
|
||||
|
||||
import {Diagnostics} from '../../../src/diagnostics';
|
||||
|
||||
@@ -11,8 +11,8 @@ import {
|
||||
PathSegment,
|
||||
relativeFrom,
|
||||
} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {ɵcomputeMsgId, ɵparseTranslation} from '@angular/localize';
|
||||
import {ɵParsedTranslation} from '@angular/localize/private';
|
||||
import {ɵcomputeMsgId, ɵparseTranslation} from '../../../../index';
|
||||
import {ɵParsedTranslation} from '../../../../private';
|
||||
import {transformSync} from '@babel/core';
|
||||
|
||||
import {Diagnostics} from '../../../src/diagnostics';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
getFileSystem,
|
||||
} from '@angular/compiler-cli/src/ngtsc/file_system';
|
||||
import {runInEachFileSystem} from '@angular/compiler-cli/src/ngtsc/file_system/testing';
|
||||
import {ɵParsedTranslation, ɵparseTranslation} from '@angular/localize';
|
||||
import {ɵParsedTranslation, ɵparseTranslation} from '../../../../index';
|
||||
|
||||
import {DiagnosticHandlingStrategy, Diagnostics} from '../../../src/diagnostics';
|
||||
import {TranslationLoader} from '../../../src/translate/translation_files/translation_loader';
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵmakeTemplateObject} from '@angular/localize';
|
||||
import {ɵmakeTemplateObject} from '../../../../../index';
|
||||
|
||||
import {ArbTranslationParser} from '../../../../src/translate/translation_files/translation_parsers/arb_translation_parser';
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵmakeTemplateObject} from '@angular/localize';
|
||||
import {ɵmakeTemplateObject} from '../../../../../index';
|
||||
|
||||
import {SimpleJsonTranslationParser} from '../../../../src/translate/translation_files/translation_parsers/simple_json_translation_parser';
|
||||
import {ParsedTranslationBundle} from '../../../../src/translate/translation_files/translation_parsers/translation_parser';
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵcomputeMsgId, ɵmakeParsedTranslation} from '@angular/localize';
|
||||
import {ɵcomputeMsgId, ɵmakeParsedTranslation} from '../../../../../index';
|
||||
|
||||
import {
|
||||
ParseAnalysis,
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵcomputeMsgId, ɵmakeParsedTranslation} from '@angular/localize';
|
||||
import {ɵcomputeMsgId, ɵmakeParsedTranslation} from '../../../../../index';
|
||||
|
||||
import {
|
||||
ParseAnalysis,
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import {ɵcomputeMsgId, ɵmakeParsedTranslation} from '@angular/localize';
|
||||
import {ɵcomputeMsgId, ɵmakeParsedTranslation} from '../../../../../index';
|
||||
|
||||
import {
|
||||
ParseAnalysis,
|
||||
|
||||
Reference in New Issue
Block a user