lbry-desktop/ui/locale.js
saltrafael 712e02db16
Use locale/get response to suggest homepage and language switch (#839)
* Use locale/get response to suggest homepage and language switch

* Fix language modal condition

* Fixes from review

* Fixes from review

* Fix gdpr

* string

* Fix multiple options behavior

* Fix gdpr and use only one fetch

* Only show if no languages set or loaded

* pt-br

* Fix ad

* Fix homepage select

* Fix zh langs
2022-03-02 09:44:01 -05:00

6 lines
144 B
JavaScript

// @flow
import { LOCALE_API } from 'config';
export async function fetchLocaleApi() {
return fetch(LOCALE_API).then((res) => res.json());
}