@treely/strapi-slices 5.12.0 → 5.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,5 +18,6 @@ interface PageProps {
18
18
  topBanner?: StrapiTopBanner;
19
19
  customerStories: IStrapiData<StrapiCustomerStory>[];
20
20
  preview: boolean;
21
+ isFallbackLocale: boolean;
21
22
  }
22
23
  export default PageProps;
@@ -778,7 +778,8 @@ var mergeGlobalAndStrapiBlogPostData = function mergeGlobalAndStrapiBlogPostData
778
778
  banner: global.attributes.banner,
779
779
  topBanner: (post == null ? void 0 : post.attributes.topBanner) || global.attributes.topBanner,
780
780
  customerStories: [],
781
- preview: !!context.preview
781
+ preview: !!context.preview,
782
+ isFallbackLocale: context.locale !== post.attributes.locale
782
783
  });
783
784
  };
784
785
 
@@ -817,7 +818,8 @@ var mergeGlobalAndStrapiCustomerStoryData = function mergeGlobalAndStrapiCustome
817
818
  banner: global.attributes.banner,
818
819
  topBanner: (customerStory == null ? void 0 : customerStory.attributes.topBanner) || global.attributes.topBanner,
819
820
  blogPosts: [],
820
- preview: !!context.preview
821
+ preview: !!context.preview,
822
+ isFallbackLocale: context.locale !== customerStory.attributes.locale
821
823
  });
822
824
  };
823
825
 
@@ -863,7 +865,8 @@ var mergeGlobalAndStrapiPageData = function mergeGlobalAndStrapiPageData(context
863
865
  banner: global.attributes.banner,
864
866
  topBanner: (page == null ? void 0 : page.attributes.topBanner) || global.attributes.topBanner,
865
867
  customerStories: returnCustomerStories ? customerStories : [],
866
- preview: !!context.preview
868
+ preview: !!context.preview,
869
+ isFallbackLocale: context.locale !== page.attributes.locale
867
870
  });
868
871
  };
869
872
 
@@ -906,7 +909,8 @@ var mergeGlobalAndStrapiProject = function mergeGlobalAndStrapiProject(context,
906
909
  banner: global.attributes.banner,
907
910
  topBanner: (project == null ? void 0 : project.attributes.topBanner) || global.attributes.topBanner,
908
911
  customerStories: [],
909
- preview: !!context.preview
912
+ preview: !!context.preview,
913
+ isFallbackLocale: context.locale !== project.attributes.locale
910
914
  });
911
915
  };
912
916