Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi lingual schemas? #105

Open
RickMoynihan opened this issue Jul 19, 2018 · 2 comments
Open

Multi lingual schemas? #105

RickMoynihan opened this issue Jul 19, 2018 · 2 comments
Assignees

Comments

@RickMoynihan
Copy link
Member

RickMoynihan commented Jul 19, 2018

In issue #6 we propose a method for retrieving labels in a preferred language. However there is another issue, which is what language should we use for our schema generation?

To expand our schemas derive fields and graphql ENUM names from labels in the data too. #6 only talks about what label is chosen when the query executes. This issue is about how to pick a language for the schema generation.

There are several options:

  • TODO enumerate options
@RickMoynihan
Copy link
Member Author

See also #73

@RickMoynihan RickMoynihan self-assigned this Jul 19, 2018
@RickMoynihan
Copy link
Member Author

RickMoynihan commented Jul 19, 2018

NOTE: we will need to collapse unicode diacretic marks into ascii for graphql (as only a subset of ASCII is valid in GraphQL queries) we can do so with a map like this:

(def ^:private diacritical-marks-map
  (zipmap "ąàáäâãåæăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșšŝťțŭùúüűûñÿýçżźž"
          "aaaaaaaaaccceeeeeghiiiijllnnoooooooossssttuuuuuunyyczzz"))

@RickMoynihan RickMoynihan removed their assignment Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants