Dynamically fetch language bundles at runtime.

This commit is contained in:
Mike Cao 2021-06-29 18:41:34 -07:00
parent 73e83ad767
commit f91cc82c82
20 changed files with 95 additions and 132 deletions

View file

@ -29,7 +29,7 @@ function filterWebsite(data, id) {
}
export default function RealtimeDashboard() {
const [locale] = useLocale();
const { locale } = useLocale();
const countryNames = useCountryNames(locale);
const [data, setData] = useState();
const [websiteId, setWebsiteId] = useState(0);