Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

New Feature Request - Multilingual Support #39

Closed
vishu099 opened this issue May 22, 2015 · 2 comments
Closed

New Feature Request - Multilingual Support #39

vishu099 opened this issue May 22, 2015 · 2 comments
Assignees

Comments

@vishu099
Copy link

Can we add a new feature in contentful middleman to get two languages at the same time from contentful.

The issues I am facing is that I have added a content in 2 different languages in the contentful and now I would like to get both the language content.

Current there is no way possible in which I can fetch both the content

I even tried this but it doesn't work

activate :contentful do |f|
f.space = {Sample: 'xxxxxxxxxxl1'}
f.access_token = '1axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb9bf935d6ca1'
f.cda_query = { include: 1,locale: 'en-US' }
f.content_types = { Sample: '6kxxxxxxxxxxxxxxxx02ME'}
end

activate :contentful do |f|
f.space = {Sample: 'xxxxxxxxxxl1'}
f.access_token = '1axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb9bf935d6ca1'
f.cda_query = { include: 1,locale: 'de-DE' }
f.content_types = { Sample: '6kxxxxxxxxxxxxxxxx02ME'}
end

Thanks

@jeromegn
Copy link

jeromegn commented Oct 1, 2015

This feature would make me switch to using contentful.

@dlitvakb
Copy link
Contributor

@vishu099 @jeromegn This will be available once contentful/#72 gets merged and released.

For allowing that, in the CDA Query, you need to specify locale: "*"

Thank you very much for your feedback.

Please let us know if this helped

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants