-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add text attribute for product and page translations (#1276)
* initial commit * Refactor translation components * Wire up products * Update types * add logic for withChoices flag * refactoring * fixing errors * change in intl.ts * amended Changelog * fix formatting * fixing stuff * Update translations * remove unused declaration * add changes * Fixes * Add newline * Update displayName * Update snapshots Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
- Loading branch information
1 parent
8d20216
commit 034eea0
Showing
38 changed files
with
781 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/fragments/types/AttributeValueTranslatableContentFragment.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// @generated | ||
// This file was automatically generated and should not be edited. | ||
|
||
import { AttributeInputTypeEnum } from "./../../types/globalTypes"; | ||
|
||
// ==================================================== | ||
// GraphQL fragment: AttributeValueTranslatableContentFragment | ||
// ==================================================== | ||
|
||
export interface AttributeValueTranslatableContentFragment_translation { | ||
__typename: "AttributeTranslation"; | ||
id: string; | ||
name: string; | ||
} | ||
|
||
export interface AttributeValueTranslatableContentFragment_attribute_choices_pageInfo { | ||
__typename: "PageInfo"; | ||
endCursor: string | null; | ||
hasNextPage: boolean; | ||
hasPreviousPage: boolean; | ||
startCursor: string | null; | ||
} | ||
|
||
export interface AttributeValueTranslatableContentFragment_attribute_choices_edges_node_translation { | ||
__typename: "AttributeValueTranslation"; | ||
id: string; | ||
name: string; | ||
richText: any | null; | ||
} | ||
|
||
export interface AttributeValueTranslatableContentFragment_attribute_choices_edges_node { | ||
__typename: "AttributeValue"; | ||
id: string; | ||
name: string | null; | ||
richText: any | null; | ||
inputType: AttributeInputTypeEnum | null; | ||
translation: AttributeValueTranslatableContentFragment_attribute_choices_edges_node_translation | null; | ||
} | ||
|
||
export interface AttributeValueTranslatableContentFragment_attribute_choices_edges { | ||
__typename: "AttributeValueCountableEdge"; | ||
cursor: string; | ||
node: AttributeValueTranslatableContentFragment_attribute_choices_edges_node; | ||
} | ||
|
||
export interface AttributeValueTranslatableContentFragment_attribute_choices { | ||
__typename: "AttributeValueCountableConnection"; | ||
pageInfo: AttributeValueTranslatableContentFragment_attribute_choices_pageInfo; | ||
edges: AttributeValueTranslatableContentFragment_attribute_choices_edges[]; | ||
} | ||
|
||
export interface AttributeValueTranslatableContentFragment_attribute { | ||
__typename: "Attribute"; | ||
id: string; | ||
name: string | null; | ||
inputType: AttributeInputTypeEnum | null; | ||
choices: AttributeValueTranslatableContentFragment_attribute_choices | null; | ||
} | ||
|
||
export interface AttributeValueTranslatableContentFragment { | ||
__typename: "AttributeTranslatableContent"; | ||
translation: AttributeValueTranslatableContentFragment_translation | null; | ||
attribute: AttributeValueTranslatableContentFragment_attribute | null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.