Empty strings when using `skip_untranslated_strings`
See original GitHub issueDescribe 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
- 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
},
]
- Execute CLI command:
crowdin download -b master
- 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:
- Created a year ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @elvis-pereira Thanks for detailed feedback, we’ll check everything from our side
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