change the mock data defaults from 'en' to 'en-us' so everything is aligned in the mock data
This commit is contained in:
@@ -18,10 +18,10 @@ export const data: Array<UmbMockDictionaryModel> = [
|
||||
id: 'aae7d0ab-53ba-485d-b8bd-12537f9925cb',
|
||||
parent: null,
|
||||
hasChildren: false,
|
||||
translatedIsoCodes: ['en'],
|
||||
translatedIsoCodes: ['en-us'],
|
||||
translations: [
|
||||
{
|
||||
isoCode: 'en',
|
||||
isoCode: 'en-us',
|
||||
translation: 'hello in en',
|
||||
},
|
||||
{
|
||||
@@ -35,10 +35,10 @@ export const data: Array<UmbMockDictionaryModel> = [
|
||||
id: 'bbe7d0ab-53bb-485d-b8bd-12537f9925cb',
|
||||
parent: null,
|
||||
hasChildren: true,
|
||||
translatedIsoCodes: ['en', 'da'],
|
||||
translatedIsoCodes: ['en-us', 'da'],
|
||||
translations: [
|
||||
{
|
||||
isoCode: 'en',
|
||||
isoCode: 'en-us',
|
||||
translation: 'Hello again in en',
|
||||
},
|
||||
{
|
||||
@@ -52,10 +52,10 @@ export const data: Array<UmbMockDictionaryModel> = [
|
||||
id: '438b8693-2156-482b-84af-ccdae0c2df6e',
|
||||
parent: { id: 'bbe7d0ab-53bb-485d-b8bd-12537f9925cb' },
|
||||
hasChildren: false,
|
||||
translatedIsoCodes: ['en', 'da'],
|
||||
translatedIsoCodes: ['en-us', 'da'],
|
||||
translations: [
|
||||
{
|
||||
isoCode: 'en',
|
||||
isoCode: 'en-us',
|
||||
translation: 'Nested Hello again in en',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ export class UmbDocumentMockDB extends UmbEntityMockDbBase<UmbMockDocumentModel>
|
||||
}
|
||||
|
||||
getDomainsForDocument(id: string): DomainsResponseModel {
|
||||
return { defaultIsoCode: 'en', domains: [] };
|
||||
return { defaultIsoCode: 'en-us', domains: [] };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ export type UmbMockLanguageModel = LanguageResponseModel & LanguageItemResponseM
|
||||
export const data: Array<UmbMockLanguageModel> = [
|
||||
{
|
||||
name: 'English',
|
||||
isoCode: 'en',
|
||||
isoCode: 'en-us',
|
||||
isDefault: true,
|
||||
isMandatory: true,
|
||||
},
|
||||
@@ -14,6 +14,6 @@ export const data: Array<UmbMockLanguageModel> = [
|
||||
isoCode: 'da',
|
||||
isDefault: false,
|
||||
isMandatory: false,
|
||||
fallbackIsoCode: 'en',
|
||||
fallbackIsoCode: 'en-us',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -9,10 +9,10 @@ const importResponse: UmbMockDictionaryModel = {
|
||||
name: 'Uploaded dictionary',
|
||||
id: 'b7e7d0ab-53ba-485d-dddd-12537f9925cb',
|
||||
hasChildren: false,
|
||||
translatedIsoCodes: ['en', 'da'],
|
||||
translatedIsoCodes: ['en-us', 'da'],
|
||||
translations: [
|
||||
{
|
||||
isoCode: 'en',
|
||||
isoCode: 'en-us',
|
||||
translation: 'I am an imported US value',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user