simplelocalize / simplelocalize-cli

SimpleLocalize CLI is a developer-friendly command-line tool for uploading and downloading translation files
https://simplelocalize.io
MIT License
56 stars 11 forks source link

Debug translation keys error #102

Closed iamibadd closed 3 months ago

iamibadd commented 3 months ago

Describe the bug

I'm downloading the translation keys from but seeing the below error.

Established active environments: [cli] Loading configuration file from: simplelocalize.yml Configuration file loaded successfully Preparing files to download Request failed: We couldn't produce a valid nested JSON file(s) due to the current state of translation keys naming. Translation key cannot contain nesting and translation text on the same level. Command failed. Use '--debug' parameter before the command name to see stacktrace.

How do I know what keys and namespaces are affected?

CLI Version

2.2.0

Operating system (please complete the following information):

Screenshots

image
jpomykala commented 3 months ago

Hey @iamibadd

Thank you for reporting the issue. Could you please re-execute the export command? The CLI should now display the full message along with the problematic keys

iamibadd commented 3 months ago

Awsome! It worked and is a life saver.

Thank you!