Skip to content

Bug(transloco): Using schematics for existing projectΒ #880

@Luzgar

Description

@Luzgar

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) are the source of the bug?

Schematics

Is this a regression?

Yes

Current behavior

I'm trying to use transloco on an existing project who's using the build-in i18n angular.
After installing the package with ng add @jsverse/transloco, the schematics seems to not been included.
When using ng g @jsverse/transloco-schematics:ngx-migrate like describe in the docs, I get the error :

An unhandled exception occurred: Collection "@jsverse/transloco-schematics" cannot be resolved.

Expected behavior

Migrate all the existing translation to transloco.

Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.

https://codesandbox.io/p/sandbox/jsverse-transloco-kn52hs

Transloco Config

import {TranslocoGlobalConfig} from '@jsverse/transloco-utils';
    
const config: TranslocoGlobalConfig = {
  rootTranslationsPath: 'src/assets/i18n/',
  langs: [ 'en', 'fr' ],
  keysManager: {}
};
    
export default config;

Please provide the environment you discovered this bug in

Transloco: 8.0.2
Angular: 20.1.3
Node: 24.3.0
Package Manager: npm (11.4.2)
OS: Windows 11

Browser

Additional context

No response

I would like to make a pull request for this bug

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions