demarches-normaliennes/app/graphql
Pierre de La Morinerie b8f71bd52c i18n: fix enum values for Dossier.state
According to Rails i18n guide, enum values should be localized
as `<model>/<enum>`, not as sub-values to the attribute.

This fixes an exception in administrate when displaying a Dossier
in the Manager.

Note: we need to change the way GraphQL attributes are generated, because
`AASM::Core::State#display_name` doesn’t honor the `model/attribute.value`
convention (and instead tries to localize as `model.attribute/value`).
So instead we lookup the localized name using ActiveRecord.
2021-05-06 14:38:25 +02:00
..
api/v2 add expert profile to api 2021-03-18 11:27:51 +01:00
extensions [GraphQL] expose file information 2019-12-11 12:34:49 +01:00
loaders Add id argument to most collections on dossier 2021-03-02 12:42:22 +01:00
mutations Fix (GraphQL): raise exception when blob is missing 2021-05-04 11:26:23 +02:00
types i18n: fix enum values for Dossier.state 2021-05-06 14:38:25 +02:00
schema.graphql i18n: fix enum values for Dossier.state 2021-05-06 14:38:25 +02:00