feat: GraphQL translations + login form
This commit is contained in:
12
server/schemas/resolvers-translation.js
Normal file
12
server/schemas/resolvers-translation.js
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
/* global wiki */
|
||||
|
||||
module.exports = {
|
||||
Query: {
|
||||
translations (obj, args, context, info) {
|
||||
return wiki.lang.getByNamespace(args.locale, args.namespace)
|
||||
}
|
||||
},
|
||||
Mutation: {},
|
||||
Translation: {}
|
||||
}
|
Reference in New Issue
Block a user