Skip to content

Not able to send YML file path anymore (Transifex::TransifexError: Could not import file: 'str' object has no attribute 'keys') #13

@caiosba

Description

@caiosba

Until today, I was able to send strings to Transifex from a locale file this way, https://github.com/Fred-grais/transifex-interface-ruby#create-2, by passing the file path only:

params = {:slug => "resource_slug", :name => "Resource created with a file", :i18n_type => "YAML", :content => 'path/to/your/file.yml'}

But now it throws an error: Transifex::TransifexError: Could not import file: 'str' object has no attribute 'keys'.

Works if I send the file contents instead of the file path:

params = {:slug => "resource_slug", :name => "Resource created with a file", :i18n_type => "YAML", :content => File.read('path/to/your/file.yml')}

Did anyone also experience this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions