Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Field in Plugin produces i18n missing translation error. #10187

Closed
u382514 opened this issue Apr 29, 2021 · 1 comment · Fixed by #10193
Closed

Custom Field in Plugin produces i18n missing translation error. #10187

u382514 opened this issue Apr 29, 2021 · 1 comment · Fixed by #10193
Labels
issue: feature request Issue suggesting a new feature source: core:content-type-builder Source is core/content-type-builder package

Comments

@u382514
Copy link

u382514 commented Apr 29, 2021

Bug report

Describe the bug

I've created a simple plugin with a custom field called Subdomain. I've added this to the model directly from the backend since there doesn't seem to be a way to do that from the frontend. Getting back into Strapi and going to the collection under content-type builder will throw an error from I18n:

React Intl Error MISSING_TRANSLATION] Missing message: "content-type-builder.attribute.subdomain" for locale: "en"

I've tried adding the entry in the en.json file under translations however the issue still occurs.

Steps to reproduce the behavior

Create a custom field in a plugin and register the field. Add it to a collection model. Go to strapi admin and click on the collection under content-type builder. Watch the sparks fly in the console.

Expected behavior

I expect it to not do that. At the very least I'd expect that the entry in the en.json file should handle it, but preferably I'd like it to not error at all.

Screenshots

image

image

@soupette soupette added the issue: feature request Issue suggesting a new feature label Apr 30, 2021
soupette added a commit that referenced this issue Apr 30, 2021
Signed-off-by: soupette <cyril.lpz@gmail.com>
@soupette soupette added the source: core:content-type-builder Source is core/content-type-builder package label Apr 30, 2021
@soupette
Copy link
Contributor

Custom fields are not supported (yet) in the content type builder. We have just made a fix so no error is displayed in the console for such case.

alexandrebodin pushed a commit that referenced this issue May 7, 2021
Signed-off-by: soupette <cyril.lpz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: feature request Issue suggesting a new feature source: core:content-type-builder Source is core/content-type-builder package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants