civicrm / org.civicrm.api4

CiviCRM api version 4
Other
8 stars 19 forks source link

Hide language field in explorer on single-lang sites #170

Closed colemanw closed 5 years ago

colemanw commented 5 years ago

No need to advertise an irrelevant field.

mattwire commented 5 years ago

@colemanw I don't fully understand the scope of this, but does it affect single language sites with multiple UI languages available?

colemanw commented 5 years ago

So that field only affects true multilingual sites, as it keys off the setting languageLimit which is only used by those sites. In theory, I suppose there are a few other instances when you'd wish to retrieve stuff from the api (like field metadata) in a specific language, but if you're using the UI-based api explorer your language will already be set.