From 10c44d3ac53a298f78837c86a7dbf4bf87c96dd1 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolski Date: Thu, 1 Oct 2020 19:04:53 +0200 Subject: [PATCH] Update translation contextCo-authored-by: Patryk Zawadzki <81205+patrys@users.noreply.github.com> --- locale/defaultMessages.json | 14 +++++++------- .../ProductVariantNavigation.tsx | 6 +++--- .../components/ProductVariants/ProductVariants.tsx | 4 ++-- src/storybook/__snapshots__/Stories.test.ts.snap | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index 15cef10f3..13fb9f884 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -4516,9 +4516,9 @@ "context": "button", "string": "Choose photos" }, - "src_dot_products_dot_components_dot_ProductVariantNavigation_dot_1120495519": { - "context": "default variant label", - "string": "default" + "src_dot_products_dot_components_dot_ProductVariantNavigation_dot_1222345317": { + "context": "default product variant indicator", + "string": "Default" }, "src_dot_products_dot_components_dot_ProductVariantNavigation_dot_2153006789": { "context": "section header", @@ -4554,14 +4554,14 @@ "context": "product variant inventory", "string": "Unavailable" }, - "src_dot_products_dot_components_dot_ProductVariants_dot_1120495519": { - "context": "default variant label", - "string": "default" - }, "src_dot_products_dot_components_dot_ProductVariants_dot_1134347598": { "context": "product variant price", "string": "Price" }, + "src_dot_products_dot_components_dot_ProductVariants_dot_1222345317": { + "context": "default product variant indicator", + "string": "Default" + }, "src_dot_products_dot_components_dot_ProductVariants_dot_1252282784": { "context": "product variant inventory", "string": "{stockQuantity,plural,one{{stockQuantity} available} other{{stockQuantity} available}}" diff --git a/src/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx b/src/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx index 8bae5945a..bcb573dad 100644 --- a/src/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx +++ b/src/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx @@ -17,7 +17,7 @@ import classNames from "classnames"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; -import { maybe, renderCollection } from "../../../misc"; +import { renderCollection } from "../../../misc"; import { ProductVariantCreateData_product_variants } from "../../types/ProductVariantCreateData"; import { ProductVariantDetails_productVariant } from "../../types/ProductVariantDetails"; @@ -118,8 +118,8 @@ const ProductVariantNavigation: React.FC = props {isDefault && ( {intl.formatMessage({ - defaultMessage: "default", - description: "default variant label" + defaultMessage: "Default", + description: "default product variant indicator" })} )} diff --git a/src/products/components/ProductVariants/ProductVariants.tsx b/src/products/components/ProductVariants/ProductVariants.tsx index 7e12fd64b..a89c3bb2b 100644 --- a/src/products/components/ProductVariants/ProductVariants.tsx +++ b/src/products/components/ProductVariants/ProductVariants.tsx @@ -355,8 +355,8 @@ export const ProductVariants: React.FC = props => { {isDefault && ( {intl.formatMessage({ - defaultMessage: "default", - description: "default variant label" + defaultMessage: "Default", + description: "default product variant indicator" })} )} diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index e376650a9..795acbb16 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -146607,7 +146607,7 @@ Ctrl + K" - default + Default - default + Default - default + Default - default + Default