Define Translations
Override default translations
// src/mock-server/mock-data/translations/en/product.ts
// your custom translations for the chunk product
export const product = {
// your custom translations for the chunk product
// you can add any nested objects here, they get deep merged with the existing default translations
productSummary: {
id: 'ID (custom)',
},
};// src/mock-server/mock-data/translations/en/index.ts
import { mergeDeep } from '@valantic/spartacus-mock';
import { translations } from '@spartacus/assets';
import { product } from './product';
export const en = {
...mergeDeep(translations['en'], { product }),
};Add custom chunks for language EN
Add translations for other languages
Last updated