question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`skip_untranslated_strings` downloads empty keys

See original GitHub issue

Describe the bug Downloading any language, when the key is not translated yet instead of skipping the key completely it will download it and put and empty string:

"translation-key": "",

To Reproduce Steps to reproduce the behavior:

  1. Configuration file:
"project_id_env": "CROWDIN_PROJECT_ID"
"api_token_env": "CROWDIN_AUTH_TOKEN"
"base_path": "."
"base_url": "https://api.crowdin.com"

"preserve_hierarchy": true

files: [{
  "source": "app/javascript/react/features/localization/locales/en.json",
  "dest": "/project/%original_file_name%",
  "translation": "%original_path%/%two_letters_code%.json",
  "skip_untranslated_strings": true
}, {
  "source": "config/locales/en.yml",
  "dest": "/project/%original_file_name%",
  "translation": "%original_path%/%two_letters_code%.yml",
  "skip_untranslated_strings": true
}]
  1. Execute CLI command: crowdin download --config .crowdin/crowdin.yml
  2. See an error

Expected behavior There should not be any empty key in the downloaded file.

Environment:

  • OS: Ubuntu
  • Version 20.04.3 LTS

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
ira-semcommented, Mar 1, 2022

@SamPersson @barrerajl would it be possible to share the examples of the source files with us on support@crowdin.com?ans also specify there a project name

0reactions
zozulkacommented, Apr 1, 2022

Dear @TrixterTheTux, You are always welcome 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Project Setup | Crowdin Documentation
Select if you want to allow translators to download source files to their machines ... Crowdin considers both string identifiers (keys) and source...
Read more >
How to Clear Your Downloads Folder - Computer Hope
To clear the files in the Downloads folder in Windows, follow the steps below. Press the Windows key on your keyboard and type...
Read more >
Download items from the web using Safari on Mac
In Safari on your Mac, download music, a PDF, software, and other items. Also see what you ... The button isn't shown if...
Read more >
Downloading translation files - Lokalise Docs
Learn how to download translation data to your PC and customize the process. ... empty, keys from all files, as well as unassigned...
Read more >
Find my downloads in Windows 10 - Microsoft Support
To find downloads on your PC: Select File Explorer from the taskbar, or press the Windows logo key + E. Under Quick access,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found