# gql locale #### add to queries ``` query GetSomething(..., $lang: SelectedLang){ something(where: {..., locales: [$SelectedLang, en]}) { ... ['preferred language', 'fallback language'] ``` Need edit: ## 1. Pages ``` query GetPageBySlug($type: String!, $lang: SelectedLang) { # slug: terms-conditions, privacy-policy, bonus-club-rules page(where: { slug: $type, locales: [$lang, en] }) { id title content { html } } } ``` ## 2. Coupons / campaigns ``` query GetCoupons($active: Boolean, $type: CouponType, $lang: SelectedLang) { coupons(where: { active: $active, type: $type }, orderBy: order_ASC, locales: [$lang, en] }) { couponId type title couponImage { url } longDescription { html } feedbackFormId singleUse } } ```