resolvers-translation.js 210 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12

/* global wiki */

module.exports = {
  Query: {
    translations (obj, args, context, info) {
      return wiki.lang.getByNamespace(args.locale, args.namespace)
    }
  },
  Mutation: {},
  Translation: {}
}