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.

Empty strings when using `skip_untranslated_strings`

See original GitHub issue

Describe the bug I’m having the exact same problem described in #428. I updated my config file to use the skip_untranslated_strings: true option, however when I run the crowdin download -b master command the download files come with a bunch of empty strings where there is no translation yet.

To Reproduce GitLab repository: https://gitlab.com/fvtt-brasil/pf2e Crowdin project: https://fvtt.crowdin.com/pf2e

  1. Configuration file:
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
base_path: .
base_url: https://fvtt.crowdin.com

preserve_hierarchy: false

commit_message: "chore(crowdin): new translations %original_file_name% from Crowdin"
append_commit_message: false

files:
  [
    {
      source: /pf2e_pt-BR/lang/en/*.json,
      translation: /pf2e_pt-BR/lang/%locale%/compendium/pf2e.%original_file_name%,
      ignore: [/pf2e_pt-BR/lang/en/en.json, /pf2e_pt-BR/lang/en/re-en.json],
      skip_untranslated_strings: true
    },
    {
      source: /pf2e_pt-BR/lang/en/en.json,
      translation: /pf2e_pt-BR/lang/%locale%/system.json,
      skip_untranslated_strings: true
    },
    {
      source: /pf2e_pt-BR/lang/en/re-en.json,
      translation: /pf2e_pt-BR/lang/%locale%/rules-elements.json,
      skip_untranslated_strings: true
    },
  ]
  1. Execute CLI command: crowdin download -b master
  2. Files are downloaded correctly, but every term without a translation yet comes as "translation-key": ""

Expected behavior Terms without translations should not be present, instead of coming with an empty string.

Environment:

  • OS: Arch Linux
  • Crowdin CLI version 3.7.8 (installed though NPM/PNPM)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
DimaYashchyshyn-zzcommented, Jun 23, 2022

Hi @elvis-pereira Thanks for detailed feedback, we’ll check everything from our side

0reactions
ira-semcommented, Jun 24, 2022

in case the same processor should be connected to other projects as well, just let us know the names and we will do that on our side

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Project Setup | Crowdin Documentation
Project owner and managers can always work with hidden strings, ... Skip untranslated strings – only translated strings will be included in the...
Read more >
Empty String Considered Harmful - Sam Jarman
The use of empty strings when used to indicate a null value or lack of value, when the language you're using has a...
Read more >
behavior for finding an empty string is inconsistent with ...
Empty string search: I think it is completely valid to be able to find an empty string inside another string, at least as...
Read more >
How to ignore empty strings with "Advanced filtering"
It is not possible to do so with the filter filter pane. You can replace the empty with null in power query so...
Read more >
Handle empty strings when migrating from Oracle to PostgreSQL
An Oracle-to-PostgreSQL migration in the AWS Cloud can be a multistage process with different technologies and skills involved, ...
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