-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow roots-contentful to be configured to pull localized entry #35
Comments
https://github.com/carrot/roots-contentful/blob/master/lib/index.coffee#L98 is where we need to pass in the |
@rmfarrell what are you thinking the outputted filename out be? |
the filename would be whatever is defined in the |
An entry can have multiple languages per field, the idea is to get an entry's fields in languages other than the default from any given file. |
oh I was thinking that it would compile all the locales request, but you're thinking it'll compile just one? |
Use Case:
Interface: contentful = require 'roots-contentful'
module.exports =
ignores: ["**/_*", "**/.DS_Store"]
extensions: [
contentful(
access_token: 'YOUR_ACCESS_TOKEN'
space_id: 'aqzq2qya2jm4'
locale: 'en-ES' # or ['lang-1', 'lang-2'] Global scope, all entries
content_types: [
{
id: '6BYT1gNiIEyIw8Og8aQAO6'
locale: 'en-ES' # Entry scope, overrides global scope
}
{
id: '7CDlVsacqQc88cmIEGYWMa'
locale: 'en-ES'
}
]
)
] |
outstanding ☝️ |
Also going to add a way to map a locale to a prefix for each template path so that you may use different templates depending on the locale, unsure the key name atm but the object looks like this: {
"en-ES": "english-",
"en-ca": "french-",
"locale-name": "foobar-"
} |
What's the status of this? Is this project just dead? |
hack:
unsure what the config interface would look like...
The text was updated successfully, but these errors were encountered: