UNPKG

@angular/localize

Version:

Angular - library for localizing messages

24 lines (23 loc) 925 B
/** * @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.dev/license */ import { AbsoluteFsPath, PathManipulation } from '@angular/compiler-cli/private/localize'; /** * A function that will return an absolute path to where a file is to be written, given a locale and * a relative path. */ export interface OutputPathFn { (locale: string, relativePath: string): string; } /** * Create a function that will compute the absolute path to where a translated file should be * written. * * The special `{{LOCALE}}` marker will be replaced with the locale code of the current translation. * @param outputFolder An absolute path to the folder containing this set of translations. */ export declare function getOutputPathFn(fs: PathManipulation, outputFolder: AbsoluteFsPath): OutputPathFn;