Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { BuilderContext } from '@angular-devkit/architect';
|
---|
| 9 | import { json } from '@angular-devkit/core';
|
---|
| 10 | import { Schema as BrowserBuilderSchema } from '../browser/schema';
|
---|
| 11 | import { Schema as ServerBuilderSchema } from '../server/schema';
|
---|
| 12 | export interface I18nOptions {
|
---|
| 13 | inlineLocales: Set<string>;
|
---|
| 14 | sourceLocale: string;
|
---|
| 15 | locales: Record<string, {
|
---|
| 16 | files: {
|
---|
| 17 | path: string;
|
---|
| 18 | integrity?: string;
|
---|
| 19 | format?: string;
|
---|
| 20 | }[];
|
---|
| 21 | translation?: Record<string, unknown>;
|
---|
| 22 | dataPath?: string;
|
---|
| 23 | baseHref?: string;
|
---|
| 24 | }>;
|
---|
| 25 | flatOutput?: boolean;
|
---|
| 26 | readonly shouldInline: boolean;
|
---|
| 27 | hasDefinedSourceLocale?: boolean;
|
---|
| 28 | }
|
---|
| 29 | export declare function createI18nOptions(metadata: json.JsonObject, inline?: boolean | string[]): I18nOptions;
|
---|
| 30 | export declare function configureI18nBuild<T extends BrowserBuilderSchema | ServerBuilderSchema>(context: BuilderContext, options: T): Promise<{
|
---|
| 31 | buildOptions: T;
|
---|
| 32 | i18n: I18nOptions;
|
---|
| 33 | }>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.