Hi Community,
We created /apps/projectname/i18n/de.json on CRXDE-Lite. When trying to import using Eclipse, files dont get imported.
Strangely if I change .json to .json1 in crxde-lite, then Import in eclipse is successful.
Is there any setting that disallows .json files to be imported?
I have checked the .xml files under apps\src\main\content\META-INF\vault. config.xml, filter.xml. settings.xml. Cant really see anything that could exclude .json files.
Any help?
Views
Replies
Total Likes
Is it happening only for i18n json files or in any other directory?
Thanks,
Views
Replies
Total Likes
Thanks for responding.
I tried pasting the de.json file in a component folder in crxde-lite. Then imported in eclipse. It imported a file de only. Without the file extension .json.
In file explorer checked it, its de.xml. Pasted below:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:language="de"
jcr:mixinTypes="[mix:language]"
jcr:primaryType="nt:file">
<jcr:content
jcr:lastModifiedBy="admin"
jcr:mimeType="application/json"
jcr:primaryType="nt:resource"/>
</jcr:root>
Views
Replies
Total Likes
BTW, we are using 6.1 SP1.
Views
Replies
Total Likes
Hi,
Not sure what's happening. If you don;t hear from other community experts please file at https://github.com/Adobe-Marketing-Cloud/aem-eclipse-developer-tools/issues
Thanks,
Views
Replies
Total Likes
Did you try import using VLT?
Views
Replies
Total Likes
hi. thanks for responding.
Tried a vlt checkout. The .json file indeed comes into the file-system. But then our code build starts failing with below error:
[ERROR] Request failed: com.day.jcr.vault.packaging.PackageException: org.apache.jackrabbit.vault.packaging.PackageException: java.lang.IllegalStateException: folder handler did not accept /apps/myproject/i18n/de.json (500)
Plus: we have got so used to working with AEM-Eclipse plugin now..Really doesnt make sense to use vlt just for a single file.
Also, any suggestions on best practices for managing translations using these .json files? Creating in crxde-lite and/or at /libs/cq/i18n/translator.html works. What then?
1. Create a package to promote to other environments? With packages we tried and faced issue - server needs to be restarted - https://issues.apache.org/jira/browse/SLING-4814
2. Import the JSONs in code and build everytime? With this approach neither import works nor the build(for us as of now).
Views
Replies
Total Likes