Skip to content

gtx-cli translate: default --src glob doesn't scan root-level files #1045

Description

@moss-bryophyta

Problem

npx gtx-cli translate uses a default --src glob that doesn't include root-level files. Files in the project root (e.g. server.js) are not scanned.

The gt-node quickstart example places server.js in the root, so running npx gtx-cli translate without explicit --src flags finds zero strings.

Expected behavior

Either:

  • The default glob should include root-level files (*.{js,jsx,ts,tsx}), or
  • The quickstart should document the need for --src '*.js'

Steps to reproduce

  1. Follow the gt-node quickstart — create server.js in project root
  2. Run npx gtx-cli translate
  3. Observe that no strings are found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions