Open RickMoynihan opened 6 years ago
See also #73
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"))
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: