I use vim to edit translation files. I had a translation file (locales/ru-RU/messages.gotext.json) opened in vim and tried to run gotext update.
What did you expect to see?
gotext generating new catalog file without errors.
What did you see instead?
gotext: import failed: parsing translation file failed: invalid character 'b' looking for beginning of value
As I figured out, gotext attempts to parse vim's temporary file locales/ru-RU/.messages.gotext.json.swp as if it were a translation file. I suppose, gotext should ignore such files (i. e. all dotfiles, or only parse files with .json extension).
The text was updated successfully, but these errors were encountered: