graphql-docs icon indicating copy to clipboard operation
graphql-docs copied to clipboard

Can I use i18n using this gem in my rails app with GraphQL?

Open xmarlox opened this issue 5 years ago • 3 comments

Sorry to ask but I'm kinda new in using GraphQL. Can I use i18n using this gem in my rails app with GraphQL? Hope to hear from you guys soon. Thanks!

xmarlox avatar Oct 21 '19 09:10 xmarlox

At present, you cannot, but that’s a good idea to support. I think localization is important.

PS Sorry, no guys, just one person manages this gem — me 😅

gjtorikian avatar Oct 22 '19 18:10 gjtorikian

I see... Do you have idea on how to implement it together with this gem? Wow a one-man team 😲

xmarlox avatar Oct 24 '19 05:10 xmarlox

@xmarlox do you still have a need for this? I've got some ideas on how this could work, but it's an interesting challenge to think about where the key for the I18n comes from and then how all of the languages get rendered. Is it that in the doc generator there's a language switcher? Happy to try to make this happen, but I could use some more details on what's needed.

brettchalupa avatar Oct 14 '22 19:10 brettchalupa