Custom hook to return a list of countries translated using react-admin useLocaleState hook and .
import { useCountries } from '@ra-libs/react';
const countries = useCountries();
[
{
"id": "<id>",
"name": "<translated-name>"
},
{
"id": "BR",
"name": "Brasil"
}
]