Skip to content

Commit 9ead46d

Browse files
yordan-stgjulivan
authored andcommitted
fix: reverse language preparation function to default to English over Dutch
1 parent 9614c62 commit 9ead46d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/modules/web-actions/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- We fixed an issue where the default fallback language for any language other than English was Dutch.
12+
913
## [2.11.0] - 2025-04-16
1014

1115
### Changed

packages/modules/web-actions/src/javascriptsource/webactions/actions/TakePicture.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ export async function TakePicture(picture, showConfirmationScreen, pictureQualit
392392
function prepareLanguage() {
393393
const englishFn = english => english;
394394
try {
395-
return mx.session.sessionData.locale.code.toLowerCase().includes("en")
396-
? englishFn
397-
: (_english, dutch) => dutch;
395+
return mx.session.sessionData.locale.code.toLowerCase().includes("nl")
396+
? (_english, dutch) => dutch
397+
: englishFn;
398398
} catch (_) {
399399
return englishFn;
400400
}

0 commit comments

Comments
 (0)