saleor-dashboard/src/fragments/translations.ts
Dawid Tarasiuk f5324cee60 SALEOR-3345 Attribute values pagination on attribute details page (#1116)
* Attribute values pagination on attribute details page

* Update test snapshots

* Update values pagination in attribute create page

* Trigger CI

* Update attribute valus list pagination settings

* Update attribute details queries

* Fetch only attribute values after values update
2021-06-08 09:51:26 +02:00

187 lines
3.3 KiB
TypeScript

import gql from "graphql-tag";
export const categoryTranslationFragment = gql`
fragment CategoryTranslationFragment on CategoryTranslatableContent {
translation(languageCode: $language) {
id
description
language {
language
}
name
seoDescription
seoTitle
}
category {
id
name
description
seoDescription
seoTitle
}
}
`;
export const collectionTranslationFragment = gql`
fragment CollectionTranslationFragment on CollectionTranslatableContent {
collection {
id
name
description
seoDescription
seoTitle
}
translation(languageCode: $language) {
id
description
language {
language
}
name
seoDescription
seoTitle
}
}
`;
export const productTranslationFragment = gql`
fragment ProductTranslationFragment on ProductTranslatableContent {
product {
id
name
description
seoDescription
seoTitle
}
translation(languageCode: $language) {
id
description
language {
code
language
}
name
seoDescription
seoTitle
}
}
`;
export const saleTranslationFragment = gql`
fragment SaleTranslationFragment on SaleTranslatableContent {
sale {
id
name
}
translation(languageCode: $language) {
id
language {
code
language
}
name
}
}
`;
export const voucherTranslationFragment = gql`
fragment VoucherTranslationFragment on VoucherTranslatableContent {
name
voucher {
id
name
}
translation(languageCode: $language) {
id
language {
code
language
}
name
}
}
`;
export const shippingMethodTranslationFragment = gql`
fragment ShippingMethodTranslationFragment on ShippingMethodTranslatableContent {
id
name
description
shippingMethod {
id
}
translation(languageCode: $language) {
id
language {
code
language
}
name
description
}
}
`;
export const pageTranslationFragment = gql`
fragment PageTranslationFragment on PageTranslatableContent {
page {
id
content
seoDescription
seoTitle
title
}
translation(languageCode: $language) {
id
content
seoDescription
seoTitle
title
language {
code
language
}
}
}
`;
export const pageTranslatableFragment = gql`
fragment PageTranslatableFragment on PageTranslatableContent {
id
content
seoDescription
seoTitle
title
translation(languageCode: $language) {
id
content
seoDescription
seoTitle
title
language {
code
language
}
}
}
`;
export const attributeTranslationFragment = gql`
fragment AttributeTranslationFragment on AttributeTranslatableContent {
translation(languageCode: $language) {
id
name
}
attribute {
id
name
inputType
# values {
# id
# name
# richText
# inputType
# translation(languageCode: $language) {
# id
# name
# richText
# }
# }
}
}
`;