"crowdin-cli upload sources" does not work for csv files
I have a source file that is a .csv file. The .yaml config for that source file is:
source: '/fastlane/metadata/**/en-US/*.csv'
translation: '/fastlane/metadata/**/%two_letters_code%/%original_file_name%'
first_line_contains_header: false
scheme: "identifier,source_or_translation"
Updating the file manually in the web interface works correctly, so the file is valid. However, when using the command crowdin-cli upload sources, there is a problem. The file seems to be uploaded correctly - there is no error message. However, when I go to the website and look at the file (that did previously have a string in it) it is now empty - the history on the file says that 1 string was deleted, and it has the text 'Nothing to translate' in the website's file browser.
Having investigated further, it seems that the real issue lies with first_line_contains_header: false.
If I change that to true, and add a header to the csv file, it uploads correctly. It seems that this property is being ignored, and is always assuming the first line is a header, and so is skipping the contents.
Please omit using the "first_line_contains_header" parameter at all, then you will import the first line successfully. Not depending on the value specified ("true", "false", "no, do not import the first row please", "I need to import the first row"), if there is "first_line_contains_header" in the configuration file, the first line will be always marked as "Do not translate". Just remove this parameter from configuration file please.
@Andrulko Noted, thanks :) Seems like a very strange, counter-intuitive implementation to me, that should at the very least be documented.