I am trying to override “strapi-plugin-content-type-builder” translation files without modifying node_modules folder.
And for that, I have created “\extensions\strapi-plugin-content-type-builder\admin\src\translations” directory and added the modified language files in it in json format, also made an index.js like this one:
import en from './en.json';
import tr from './tr.json';
const trads = {
en,
tr
};
export default trads;
But it didn’t work. I still see the original translations that was is the json files in “node_modules\strapi-plugin-content-type-builder\admin\src\translations”
How can I override the original json files with the new ones? Thanks.
As soon as you want to extend an existing plugin you have to create a folder in the extensions folder. This folder should be named by the plugin ID: Strapi plugins - Strapi Developer Documentation
In your case I think that the strapi-plugin-content-type-builder ID is content-type-builder
It still doesn’t override translation, even though I have content-type-builder directory name. I tried it with different keys in json, and it doesn’t work as well.
Did the override system changed in the newest version or am I doing something wrong? Thanks