cgkineo / rub-cli

Adapt RUB buildkit
3 stars 2 forks source link

Localisation/translation import issue with json #37

Closed oliverfoster closed 3 years ago

oliverfoster commented 3 years ago

Subject of the issue/enhancement/features

Trying to import json file for translation instead of csv, but getting error on import

Your environment

Framework, v5.3.0 Windows 10

Steps to reproduce

Export content to json Duplicated the en folder in a course within builds folder, and renamed it de (this has the json and images folder in it, but in English)

added a de folder to the languagefiles folder (top level of dev folder) and added in the translated export.json

ran rub translate:import –targetLang=de –format=json get error saying that “sorry, the imported file is not valid”

Expected behaviour

Should import the json

Actual behaviour

Get above error

Screenshots (if you can)

attached. (i've blanked out part of the file path Screenshot 2021-04-13 171128 )

Referencing https://github.com/adaptlearning/adapt_framework/issues/3125

oliverfoster commented 3 years ago

fixed in https://github.com/adaptlearning/adapt_framework/pull/3127

tomallpress commented 3 years ago

Tried again after applying fix to the grunt folder, and now getting the following error. I do have the export.json in the de folder it's referring to. Untitled

Happy to catch up separately