I was starting to setup i18next for my graphql API...
# orm-help
j
I was starting to setup i18next for my graphql API with Nexus but I don’t think it’s worth it
n
I do have an I18n type. It is really useful for typesafety on the front end and validation on the back end
Copy code
export const i18n = objectType({
	name: 'i18n',
	definition(t) {
		t.string('fr')
		t.string('en')
	},
})
export const i18nInput = inputObjectType({
	name: 'i18nInput',
	definition(t) {
		t.nonNull.string('fr')
		t.nonNull.string('en')
	},
})