fixed #619: browser displays language in different names

This commit is contained in:
Shashank Agarwal 2024-11-18 09:58:25 +00:00
parent bffee0a2e8
commit 0c8ba33db0

View File

@ -357,7 +357,7 @@ export function getFailureText(ctx: Context, item: any) {
const { lang } = ctx;
const { type, type2, value1, value2 } = item;
if (lang === "en") {
if (lang === "en" || lang === "en-GB" || lang === "en-US") {
const optionLabel_en = ctx.dataVerification?.optionLabel_en;
if (type === "dropdown") {
failureText += "what you selected is not an option in the drop-down list";