Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract from source file error #56

Open
wcastand opened this issue Jan 9, 2025 · 0 comments
Open

extract from source file error #56

wcastand opened this issue Jan 9, 2025 · 0 comments

Comments

@wcastand
Copy link

wcastand commented Jan 9, 2025

trying to extract into .po file the linguijs translation but getting this error

retails chore/languine-setup ❯ npx languine@latest

    ██╗      █████╗ ███╗   ██╗ ██████╗ ██╗   ██╗██╗███╗   ██╗███████╗
    ██║     ██╔══██╗████╗  ██║██╔════╝ ██║   ██║██║████╗  ██║██╔════╝
    ██║     ███████║██╔██╗ ██║██║  ███╗██║   ██║██║██║██╗ ██║█████╗
    ██║     ██╔══██║██║╚██╗██║██║   ██║██║   ██║██║██║╚██╗██║██╔══╝
    ███████╗██║  ██║██║ ╚████║╚██████╔╝╚██████╔╝██║██║ ╚████║███████╗
    ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝  ╚═════╝ ╚═╝╚═╝  ╚═══╝╚══════╝

Translate your application with Languine CLI powered by AI.
Website: https://languine.ai

│
◇  What would you like to do?
│  Extract translation keys from source files
┌  Extracting translation keys...
file:///Users/wcastand/.npm/_npx/8e2b6b35c5047a76/node_modules/languine/dist/index.js:366
  if (config.files.json.include.length === 0) {
                        ^

TypeError: Cannot read properties of undefined (reading 'include')
    at extract (file:///Users/wcastand/.npm/_npx/8e2b6b35c5047a76/node_modules/languine/dist/index.js:366:25)
    at async file:///Users/wcastand/.npm/_npx/8e2b6b35c5047a76/node_modules/languine/dist/index.js:2289:3

Node.js v20.15.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant