UNPKG

@jsverse/transloco-keys-manager

Version:

Extract translatable keys from projects that uses Transloco

18 lines (17 loc) 480 B
import { LiteralPrimitive } from '@angular/compiler'; import { Scopes } from '../../types'; export declare function resolveAliasAndKey(key: LiteralPrimitive['value'], scopes: Scopes): [string, string | null]; /** * * Resolve the scope alias * * @example * * scopePath: 'some/nested' => someNested * scopePath: 'some/nested/en' => someNested * */ export declare function resolveScopeAlias({ scopePath, scopes, }: { scopePath: string; scopes: Scopes; }): string;