diff --git a/packages/admin-ui/src/lib/core/src/common/utilities/create-updated-translatable.spec.ts b/packages/admin-ui/src/lib/core/src/common/utilities/create-updated-translatable.spec.ts index 6e66aa6f6f..90a01adaac 100644 --- a/packages/admin-ui/src/lib/core/src/common/utilities/create-updated-translatable.spec.ts +++ b/packages/admin-ui/src/lib/core/src/common/utilities/create-updated-translatable.spec.ts @@ -34,21 +34,21 @@ describe('createUpdatedTranslatable()', () => { it('creates new translation if the specified translation does not exist', () => { const formValue = { - name: 'New Name AA', + name: 'New Name AF', }; const result = createUpdatedTranslatable({ translatable: product, updatedFields: formValue, - languageCode: LanguageCode.aa, + languageCode: LanguageCode.af, defaultTranslation: { - languageCode: LanguageCode.aa, + languageCode: LanguageCode.af, name: product.name || '', }, }); expect(result.translations[2]).toEqual({ - languageCode: LanguageCode.aa, - name: 'New Name AA', + languageCode: LanguageCode.af, + name: 'New Name AF', }); }); diff --git a/packages/core/src/service/helpers/translatable-saver/translation-differ.spec.ts b/packages/core/src/service/helpers/translatable-saver/translation-differ.spec.ts index 449b3d0190..a882a6a7ab 100644 --- a/packages/core/src/service/helpers/translatable-saver/translation-differ.spec.ts +++ b/packages/core/src/service/helpers/translatable-saver/translation-differ.spec.ts @@ -58,13 +58,13 @@ describe('TranslationUpdater', () => { it('correctly marks translations for addition', async () => { const updated: Array> = [ { - languageCode: LanguageCode.aa, + languageCode: LanguageCode.af, name: '', slug: '', description: '', }, { - languageCode: LanguageCode.za, + languageCode: LanguageCode.zh, name: '', slug: '', description: '', @@ -86,7 +86,7 @@ describe('TranslationUpdater', () => { description: '', }, { - languageCode: LanguageCode.za, + languageCode: LanguageCode.zh, name: '', slug: '', description: '',