Skip to content

Bug: Transloco-keys-manager find gets stuck #248

@davb11

Description

@davb11

Is there an existing issue for this?

  • I have searched the existing issues

Is this a regression?

No

Current behavior

Running transloco-keys-manager find does not print the summary table and the process never ends.

Image

Expected behavior

It should not get stuck and it should print the summary table.

Please provide a link to a minimal reproduction of the bug

No link

Transloco Config

import { TranslocoGlobalConfig } from '@jsverse/transloco-utils';

const config: TranslocoGlobalConfig = {
  rootTranslationsPath: 'public/i18n',
  langs: ['en', 'fr', 'nl'],
  keysManager: {
    input: 'src/app',
    output: 'public/i18n',
    sort: true,
    defaultValue: '',
    addMissingKeys: true,
  },
};

export default config;

Debug Logs

🐞 DEBUG - Config:
   Default: {
     input: [ 'src/app' ],
     output: 'src/assets/i18n',
     langs: [ 'en' ],
     marker: 't',
     sort: false,
     defaultValue: undefined,
     replace: false,
     removeExtraKeys: false,
     addMissingKeys: false,
     emitErrorOnExtraKeys: false,
     translationsPath: 'src/assets/i18n',
     fileFormat: 'json'
   } +0ms
   Transloco file: {
     translationsPath: 'public/i18n',
     langs: [ 'en', 'fr', 'nl' ],
     input: [ 'src/app' ],
     output: 'public/i18n',
     sort: true,
     defaultValue: '',
     addMissingKeys: true
   } +1ms
   Inline: { command: 'find' } +0ms
   Merged: {
     input: [ 'src/app' ],
     output: 'public/i18n',
     langs: [ 'en', 'fr', 'nl' ],
     marker: 't',
     sort: true,
     defaultValue: '',
     replace: false,
     removeExtraKeys: false,
     addMissingKeys: true,
     emitErrorOnExtraKeys: false,
     translationsPath: 'public/i18n',
     fileFormat: 'json',
     command: 'find'
   } +1ms

🐞 DEBUG - Configuration Paths:
   Input: [ 'PROJECT_PATH\\src\\app' ] +0ms
   Output: 'PROJECT_PATH\\public\\i18n' +0ms
   Translations: 'PROJECT_PATH\\public\\i18n' +0ms

🐞 DEBUG - Scopes:
   Scopes map: {} +0ms

 🕵 🔎 Starting Search For Missing Keys 🔍 🕵

⠋ Extracting Template and Component Keys 

(File list omitted)

✔ Extracting Template and Component Keys 🗝
✔ Checking for missing keys ✨
✔ Summary

Please provide the environment you discovered this bug in

Transloco: 8.2.1
Transloco Keys Manager: 7.1.0
Angular: 20.3.16
Node: v22.12.0
Package Manager: npm 11.8.0
OS: windows 11 x64

Additional context

No response

I would like to make a pull request for this bug

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions