Skip to content

Commit

Permalink
Merge pull request #36 from dontcallmedom/translations
Browse files Browse the repository at this point in the history
Add support for translations endpoint
  • Loading branch information
dontcallmedom authored Feb 28, 2019
2 parents ff29207 + f75d57d commit 8bdae21
Show file tree
Hide file tree
Showing 3 changed files with 1,245 additions and 1,707 deletions.
12 changes: 12 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,15 @@ function ParticipationCtx (ctx) {

subSteps(ParticipationCtx, ['participants']);
exports.participation = idStep(ParticipationCtx, 'participations');

//------------------------------------- 8. Translations

exports.translations = rootList("translations");

function TranslationCtx (ctx) {
Ctx.call(this, ctx);
}

// FIXME: idStep assumes subSteps has been run before
subSteps(TranslationCtx, []);
exports.translation = idStep(TranslationCtx, 'translations');
Loading

0 comments on commit 8bdae21

Please sign in to comment.