You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have a default language fallback - for example, if the accept-language header doesn't contain one of our supported languages it uses a default. For example:
parser.pick(['en-GB'], 'en-US'); // can it return en-GB not null
Thanks.
The text was updated successfully, but these errors were encountered:
Yeah, that's what I'm doing at the moment. I was just wondering if parser.pick could do it. However, it's no biggie. I was thinking more if someone forgot to set the default.
Hi,
Is it possible to have a default language fallback - for example, if the accept-language header doesn't contain one of our supported languages it uses a default. For example:
parser.pick(['en-GB'], 'en-US'); // can it return en-GB not null
Thanks.
The text was updated successfully, but these errors were encountered: