Skip to content

Add fallback_lang parameter to StoryRequest and StoriesRequest#101

Open
mbiberger wants to merge 2 commits into
storyblok:masterfrom
mbiberger:feature/add-fallback-lang-parameter
Open

Add fallback_lang parameter to StoryRequest and StoriesRequest#101
mbiberger wants to merge 2 commits into
storyblok:masterfrom
mbiberger:feature/add-fallback-lang-parameter

Conversation

@mbiberger
Copy link
Copy Markdown

Adds an optional fallbackLanguage constructor parameter to both StoryRequest and StoriesRequest. When set, the Storyblok Content Delivery API parameter fallback_lang is included in the query, enabling field-level fallback for untranslated content.

Adds an optional fallbackLanguage constructor parameter to both
StoryRequest and StoriesRequest. When set, the Storyblok Content
Delivery API parameter fallback_lang is included in the query,
enabling field-level fallback for untranslated content.
@silasjoisten
Copy link
Copy Markdown
Collaborator

Hey @mbiberger can you please add tests?

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 11, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.00%. Comparing base (979740e) to head (683fcab).

Files with missing lines Patch % Lines
src/Request/StoriesRequest.php 50.00% 1 Missing ⚠️
src/Request/StoryRequest.php 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #101      +/-   ##
============================================
- Coverage     94.10%   94.00%   -0.11%     
- Complexity      515      517       +2     
============================================
  Files            79       79              
  Lines          1680     1684       +4     
============================================
+ Hits           1581     1583       +2     
- Misses           99      101       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants