Angular Modernizer
    Preparing search index...

    A translation file for one language.

    interface I18nSource {
        app: string;
        conditional: boolean;
        conditionReason?: I18nConditionReason;
        definitions: I18nDefinition[];
        discoveredBy: I18nDiscovery;
        file: string;
        group?: string;
        kind: I18nSourceKind;
        lang: string;
        registeredAt?: I18nSite;
    }
    Index

    Properties

    app: string

    App the source belongs to: folder (relative to rootDir, . for the root) of the nearest tsconfig.app.json above the registration, or above the file when nothing registers it. . when there is none.

    conditional: boolean

    Loaded only under a condition (lookup by a runtime key, or a branch).

    conditionReason?: I18nConditionReason

    Why the source is conditional; set when conditional is true.

    definitions: I18nDefinition[]

    Keys of the source with their values.

    discoveredBy: I18nDiscovery

    How the source was found.

    file: string

    File holding the keys: the TS file of the object literal, or the JSON file.

    group?: string

    Lookup key the source is filed under: beta in { beta: [de, en] }[key].

    Whether the keys are a TS object literal or a JSON file.

    lang: string

    Language code: the language argument of setTranslation, or the JSON file name without suffix.

    registeredAt?: I18nSite

    Outermost call handing the source to setTranslation, or the loader.