<commit_before># angular-gettext-loader
Loader to extract gettext strings from an angular project.

## Installation

    npm i -D angular-gettext-loader

## Usage

Add it into the pipeline for js & html loading:

    modules: {
      ...
      loaders: [
        ...
          {
            test: /src.*\.js$/,
            loader: 'angular-gettext-loader?pofile=po/template.pot'
          },
          {
            test: /src.*\.html$/,
            loader: 'angular-gettext-loader?pofile=po/template.pot'
          },
        ...
      ]
      ...
    }

This will output all strings found to the the configured pofile.

## Caveat

It does not detect the removal of strings. (Yet ...?)<commit_msg>Fix README again.<commit_after># angular-gettext-extract-loader
Loader to extract gettext strings from an angular project.

## Installation

    npm i -D angular-gettext-extract-loader

## Usage

Add it into the pipeline for js & html loading:

    modules: {
      ...
      loaders: [
        ...
          {
            test: /src.*\.js$/,
            loader: 'angular-gettext-extract-loader?pofile=po/template.pot'
          },
          {
            test: /src.*\.html$/,
            loader: 'angular-gettext-extract-loader?pofile=po/template.pot'
          },
        ...
      ]
      ...
    }

This will output all strings found to the the configured pofile.

## Caveat

It does not detect the removal of strings. (Yet ...?)
{'fraction_non_alphanumeric': 0.12360335195530726, 'fraction_numerical': 0.0, 'mean_word_length': 1.693609022556391, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7332119', 'n_tokens_mistral': 436, 'n_tokens_neox': 419, 'n_words': 116}