-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(l10n): add graphql transformers and
localize
(#1885)
* feat(l10n): add localize * chore: add lodash * docs(l10n): add docs * refactor(l10n/localize): allow consumer to specify Output * refactor: transformLocalizedFieldToString -> transformLocalizedFieldToLocalizedString * docs(l10n): rename fieldTransformDefinitions -> fieldNameTransformationMappings * docs(l10n): rephrase, useMcQuery, rename fetchedProduct -> product * refactor(l10n): rename injectTransformedLocalizedFields -> applyTransformedLocalizedFields * refactor(l10n): do not expose transformLocalizedFieldToLocalizedString, * chore: add changeset * refactor(l10n): move types to `./types` * feat(l10n): add `localize` * refactor(localize): rename `language` -> locale * refactor(localize): simplify mapping for `namesToOmit` * chore(l10n/readme): simplify locale mapping * chore: rename addFallbackHint -> formatLocalizedFallbackHint * chore: update signature docs * docs(l10n): correct phrasing * docs(localize): update README Co-authored-by: Nicola Molinari <[email protected]> * chore(l10n/readme): update according review suggestions Co-authored-by: Nicola Molinari <[email protected]> * refactor(l10n): update signature, localize -> formatLocalizedString in README * refactor(l10n): rename LocalizeSignatureOptions -> FormatLocalizedStringOptions * docs(l10n/readme): reword Co-authored-by: Tobias Deekens <[email protected]> * refactor(l10n/types): use `Record` * docs(l10n/readme): remove wording about "use with caution" Co-authored-by: Nicola Molinari <[email protected]> Co-authored-by: Tobias Deekens <[email protected]>
- Loading branch information
1 parent
58a2035
commit a8e2202
Showing
9 changed files
with
1,238 additions
and
687 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@commercetools-frontend/l10n': minor | ||
--- | ||
|
||
feature: add `applyTransformedLocalizedFields` to `l10n` |
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.
a8e2202
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: