Skip to content
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

add locale(s) support #39

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update entry format, remove array wrapper
hhsnopek committed Nov 4, 2015
commit e678629ece2a0e14d0de41707d5c2c0d97126fd1
8 changes: 4 additions & 4 deletions test/test.coffee
Original file line number Diff line number Diff line change
@@ -331,7 +331,7 @@ describe 'single entry views', ->
after -> unmock_contentful()

describe 'locale', ->
describe.only 'setup', ->
describe 'setup', ->
before (done) ->
@title = ['Throw Some Ds', '\'op Ds chuH', 'arrojar algo de Ds\'']
@body = [
@@ -342,17 +342,17 @@ describe 'locale', ->
mock_contentful(
entries: [
{
fields: [{title: @title[0], body: @body[0]}]
fields: {title: @title[0], body: @body[0]}
sys:
locale: 'en-US'
}
{
fields: [{title: @title[1], body: @body[1]}],
fields: {title: @title[1], body: @body[1]},
sys:
locale: 'tlh'
}
{
fields: [{title: @title[2], body: @body[2]}],
fields: {title: @title[2], body: @body[2]},
sys:
locale: 'en-es'
}