Quellcode durchsuchen

docs: Add to note about custom field type generation for translated entities (#3799)

Daniel Biegler vor 4 Monaten
Ursprung
Commit
b6d89ea6cb
1 geänderte Dateien mit 11 neuen und 1 gelöschten Zeilen
  1. 11 1
      docs/docs/guides/developer-guide/has-custom-fields/index.md

+ 11 - 1
docs/docs/guides/developer-guide/has-custom-fields/index.md

@@ -83,7 +83,17 @@ input UpdateProductReviewInput {
 Notice the lack of manually defining `customFields` on the types, this is because Vendure extends the types automatically once your entity implements `HasCustomFields`.
 
 :::important Naming convention
-In order for Vendure to find the correct input types to extend to, they must conform to the naming convention of `Create<EntityName>Input` and `Update<EntityName>Input`.
+In order for Vendure to find the correct input types to extend to, they must conform to the naming convention of:
+
+- `Create<EntityName>Input`
+- `Update<EntityName>Input`
+
+And if your entity is [supporting translations](/guides/developer-guide/translatable):
+
+- `<EntityName>Translation`
+- `<EntityName>TranslationInput`
+- `Create<EntityName>TranslationInput`
+- `Update<EntityName>TranslationInput`
 :::
 
 Following this caveat, codegen will now produce correct types including `customFields`-fields like so: