@lightweightform/theme-common
Version:
Common utilities for Lightweightform themes
20 lines (19 loc) • 811 B
TypeScript
import { Path } from '@angular-devkit/core';
import { Tree } from '@angular-devkit/schematics';
/**
* Returns the root i18n for a given form.
* @param host Source tree.
* @param moduleDir Path of the module directory where the root i18n should be
* found.
* @returns Path of the root i18n.
*/
export declare function getRootI18nPath(host: Tree, moduleDir: Path): Path;
/**
* Adds a form's locale to the root i18n file.
* @param host Source tree.
* @param rootI18nPath Path of the root i18n.
* @param locale Locale being added.
* @param localePath Path of the form's locale.
* @param localeTsName Exported named of the form's locale.
*/
export declare function addFormLocaleToRootI18n(host: Tree, rootI18nPath: Path, locale: string, localePath: Path, localeTsName: string): void;