From b01aa33012e921c1cc1058c39d4ff6d6cf48f94d Mon Sep 17 00:00:00 2001 From: Glen Date: Fri, 15 Dec 2023 09:22:12 +0200 Subject: [PATCH] Fixed some grammatical errors in resource files (#6773) --- .../src/Types.Mutations/Properties/MutationResources.resx | 2 +- .../Core/src/Types/Properties/TypeResources.resx | 4 ++-- .../InterfaceTypeValidation.Field_Is_Not_Implemented.snap | 6 +++--- ...tion.Implemented_Field_Is_NonNull_Field_Is_Nullable.snap | 2 +- ...ect_Implements_Not_The_Interfaces_Of_Its_Interfaces.snap | 4 ++-- ...t_Implements_Not_The_Interfaces_Of_Its_Interfaces_2.snap | 4 ++-- ...TypeValidationRuleTests.RejectFieldsWithInvalidName.snap | 2 +- ...nRuleTests.RejectInterfaceWithMissingImplementation.snap | 2 +- ...terfaceWithNullableMissMatchInImplementationOfField.snap | 2 +- ...ionRuleTests.RejectInterfaceWithWrongImplementation.snap | 2 +- ...eldDoesNotMatchInterfaceDefinitionReturnTypeInvalid.snap | 4 ++-- ...s.TwoInterfacesProvideFieldAWithDifferentOutputType.snap | 2 +- .../CodeGeneration/Properties/CodeGenerationResources.resx | 4 ++-- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/HotChocolate/Core/src/Types.Mutations/Properties/MutationResources.resx b/src/HotChocolate/Core/src/Types.Mutations/Properties/MutationResources.resx index 7efffe1f47f..96a08dc27d5 100644 --- a/src/HotChocolate/Core/src/Types.Mutations/Properties/MutationResources.resx +++ b/src/HotChocolate/Core/src/Types.Mutations/Properties/MutationResources.resx @@ -23,7 +23,7 @@ Could not load the type inspector while building type {0} - Error while building type {0}. The runtime type {1} does not defined a property `Message` + Error while building type {0}. The runtime type {1} does not define a property named `Message` Could not find a unique type name for input type of the argument {0} on field {1}. The type name {2} collides with {3}. diff --git a/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx b/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx index 6207f8ec05c..d9c23ef5c25 100644 --- a/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx +++ b/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx @@ -899,10 +899,10 @@ Type: `{0}` The {0} type must also declare all interfaces declared by implemented interfaces. - Field `{0}` must return a type which is equal to or a sub‐type of (covariant) the return type `{1}` of the interface field. + Field `{0}` must return a type which is equal to or a subtype of (covariant) the return type `{1}` of the interface field. - The field `{0}` must be implement by {1} type `{2}`. + The field `{0}` must be implemented by {1} type `{2}`. The named argument `{0}` on field `{1}` must accept the same type `{2}` (invariant) as that named argument on the interface `{3}`. diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/InterfaceTypeValidation.Field_Is_Not_Implemented.snap b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/InterfaceTypeValidation.Field_Is_Not_Implemented.snap index 100bbd1d921..4666811eb11 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/InterfaceTypeValidation.Field_Is_Not_Implemented.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/InterfaceTypeValidation.Field_Is_Not_Implemented.snap @@ -1,5 +1,5 @@ { - "message": "The field `def` must be implement by object type `Foo`.", + "message": "The field `def` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "def", @@ -8,7 +8,7 @@ } { - "message": "The field `def` must be implement by object type `Foo`.", + "message": "The field `def` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "def", @@ -17,7 +17,7 @@ } { - "message": "The field `def` must be implement by object type `Foo`.", + "message": "The field `def` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "def", diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Implemented_Field_Is_NonNull_Field_Is_Nullable.snap b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Implemented_Field_Is_NonNull_Field_Is_Nullable.snap index 988e83a75da..8ad5d330e13 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Implemented_Field_Is_NonNull_Field_Is_Nullable.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Implemented_Field_Is_NonNull_Field_Is_Nullable.snap @@ -1,5 +1,5 @@ { - "message": "Field `bar` must return a type which is equal to or a sub‐type of (covariant) the return type `String!` of the interface field.", + "message": "Field `bar` must return a type which is equal to or a subtype of (covariant) the return type `String!` of the interface field.", "type": "Foo", "extensions": { "field": "bar", diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces.snap b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces.snap index 309caf65442..558477ad40a 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces.snap @@ -1,5 +1,5 @@ { - "message": "The field `cde` must be implement by object type `Foo`.", + "message": "The field `cde` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "cde", @@ -8,7 +8,7 @@ } { - "message": "The field `cde` must be implement by object type `Foo`.", + "message": "The field `cde` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "cde", diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces_2.snap b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces_2.snap index 309caf65442..558477ad40a 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces_2.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/__snapshots__/ObjectTypeValidation.Object_Implements_Not_The_Interfaces_Of_Its_Interfaces_2.snap @@ -1,5 +1,5 @@ { - "message": "The field `cde` must be implement by object type `Foo`.", + "message": "The field `cde` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "cde", @@ -8,7 +8,7 @@ } { - "message": "The field `cde` must be implement by object type `Foo`.", + "message": "The field `cde` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "cde", diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/InterfaceTypeValidationRuleTests.RejectFieldsWithInvalidName.snap b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/InterfaceTypeValidationRuleTests.RejectFieldsWithInvalidName.snap index 37076f7cfc2..5fb917a74dc 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/InterfaceTypeValidationRuleTests.RejectFieldsWithInvalidName.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/InterfaceTypeValidationRuleTests.RejectFieldsWithInvalidName.snap @@ -1,5 +1,5 @@ { - "message": "The field `__badField` must be implement by object type `Bar`.", + "message": "The field `__badField` must be implemented by object type `Bar`.", "type": "Bar", "extensions": { "implementedField": "__badField", diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithMissingImplementation.snap b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithMissingImplementation.snap index 5034541a336..daefd0cd80c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithMissingImplementation.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithMissingImplementation.snap @@ -1,5 +1,5 @@ { - "message": "The field `second` must be implement by object type `Foo`.", + "message": "The field `second` must be implemented by object type `Foo`.", "type": "Foo", "extensions": { "implementedField": "second", diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithNullableMissMatchInImplementationOfField.snap b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithNullableMissMatchInImplementationOfField.snap index f8dea9674ed..61141b71ce9 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithNullableMissMatchInImplementationOfField.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithNullableMissMatchInImplementationOfField.snap @@ -1,5 +1,5 @@ { - "message": "Field `first` must return a type which is equal to or a sub‐type of (covariant) the return type `String!` of the interface field.", + "message": "Field `first` must return a type which is equal to or a subtype of (covariant) the return type `String!` of the interface field.", "type": "Foo", "extensions": { "field": "first", diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithWrongImplementation.snap b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithWrongImplementation.snap index 2e11a763428..ad9537992ea 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithWrongImplementation.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/__snapshots__/ObjectTypeValidationRuleTests.RejectInterfaceWithWrongImplementation.snap @@ -1,5 +1,5 @@ { - "message": "Field `first` must return a type which is equal to or a sub‐type of (covariant) the return type `String` of the interface field.", + "message": "Field `first` must return a type which is equal to or a subtype of (covariant) the return type `String` of the interface field.", "type": "Foo", "extensions": { "field": "first", diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectFieldDoesNotMatchInterfaceDefinitionReturnTypeInvalid.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectFieldDoesNotMatchInterfaceDefinitionReturnTypeInvalid.snap index b2d9e2b0eed..31032783b52 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectFieldDoesNotMatchInterfaceDefinitionReturnTypeInvalid.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.ObjectFieldDoesNotMatchInterfaceDefinitionReturnTypeInvalid.snap @@ -1,4 +1,4 @@ For more details look at the `Errors` property. -1. Field `a` must return a type which is equal to or a sub‐type of (covariant) the return type `String` of the interface field. (HotChocolate.Types.ObjectType) -2. Field `a` must return a type which is equal to or a sub‐type of (covariant) the return type `String` of the interface field. (HotChocolate.Types.ObjectType) +1. Field `a` must return a type which is equal to or a subtype of (covariant) the return type `String` of the interface field. (HotChocolate.Types.ObjectType) +2. Field `a` must return a type which is equal to or a subtype of (covariant) the return type `String` of the interface field. (HotChocolate.Types.ObjectType) diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.TwoInterfacesProvideFieldAWithDifferentOutputType.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.TwoInterfacesProvideFieldAWithDifferentOutputType.snap index bd29979fd7e..cc38f3bb243 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.TwoInterfacesProvideFieldAWithDifferentOutputType.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/ObjectTypeTests.TwoInterfacesProvideFieldAWithDifferentOutputType.snap @@ -1,3 +1,3 @@ For more details look at the `Errors` property. -1. Field `a` must return a type which is equal to or a sub‐type of (covariant) the return type `Int` of the interface field. (HotChocolate.Types.ObjectType) +1. Field `a` must return a type which is equal to or a subtype of (covariant) the return type `Int` of the interface field. (HotChocolate.Types.ObjectType) diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Properties/CodeGenerationResources.resx b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Properties/CodeGenerationResources.resx index 898ad1adae2..5ed17c3f4e6 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Properties/CodeGenerationResources.resx +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Properties/CodeGenerationResources.resx @@ -28,7 +28,7 @@ No types were found in the given .graphql files. - One of the given .graphql files contains a graphql syntax error. + One of the given .graphql files contains a GraphQL syntax error. Represents the operation service of the {0} GraphQL operation @@ -43,7 +43,7 @@ The specified return fragment does not exist. - The specified return fragment must be implement by all type fragments. + The specified return fragment must be implemented by all type fragments. There is a name collision between a fragment and the result type name `{0}`.