System Information
- Strapi Version: 5.4.2
- Operating System: docker node:18.18.2-alpine3.18
- Database: postgresql
- Node Version: 18.18.2
- NPM Version: 10.7.0
- Yarn Version: only running it with npm
Hello there ,
I’m encountering a problem while trying to translate my collection-type display name.
I got a carousel
collection type witch is defined as it follows :
shema.json
{
"kind": "collectionType",
"collectionName": "carousels",
"info": {
"singularName": "carousel",
"pluralName": "carousels",
"displayName": "carousel",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"identifier": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true,
"unique": true
}
}
}
And I’m trying to translate it’s name for non-developer user. In order to do this I’ve followed this documentation. And after doing this my app.ts
look like this :
src/admin/app.ts
import type { StrapiApp } from '@strapi/strapi/admin';
export default {
config: {
locales: [ 'en' ],
translations:{
en:{
"Carousel": "NoDevName",
"carousel": "noDevName",
}
},
// Disable video tutorials
tutorials: false,
// Disable notifications about new Strapi releases
notifications: { releases: false },
},
bootstrap(app: StrapiApp) {
console.log(app);
},
};
The problem is the following : Why only some of the occurrences of carousel
are translated.
To be exact the Content Manager side list is actually the only place where the translation is applied.
My guess is that the translation key is more complex than what I did wrote (Something is the likes of "carousel.info.displayName"
) but I couldn’t find any help regarding the right translation key online.
Can somebody help me with this one ?