Skip to main content

we have a dependent picklist in LWC and we get the value from standard getPicklistValue method, but when user language is non-english and we have a translation for the picklist vlaue, the picklist value won't shown in the front end.  

But if the translated value is same as English, it will be shown in the front end.  

 

Dependent picklist not shown in LWC page when user has a non-English language.

 

I also asked AI and it say:  

When assembling picklist value sets in the UAT sandbox (Winter '27) using the UI-API in a non-default language, values with translated entries are incorrectly discarded—this is a platform regression, not a data or configuration issue. Production is currently running an older version and is therefore safe, but the issue will inevitably reoccur the moment production is upgraded to Winter '27. 

 

So I want to know if this is a salesforce Known issue or not?  

 

 

#Trailhead Challenges  #Salesforce Developer  #TrailblazerCommunity  #Apex

2 件の回答
  1. 9月22日 11:14

    Hi @Bruce Wang

    -  Its  likely due to translated labels being used for dependency mapping.  

    Use the picklist API value for controllerValues matching, and use label only for displaying the value.  

    controllerValue === index
0/9000