Function: machineLanguageCandidates()
machineLanguageCandidates(
machineLanguage,language,extra):string[]
Defined in: composables/shared/utils/machineLanguage.ts:43
The languages to try, in order: the tree language first (the common case and the only one that costs a request in a fully-translated shop), then the storefront language, then any others the host declares.
Upper-cased and de-duplicated — the API matches the case exactly.
Parameters
machineLanguage
string | undefined
language
string | undefined
extra
string[] | undefined
Returns
string[]