Skip to content

Instantly share code, notes, and snippets.

@bachhm-dev
Created September 2, 2020 06:43
Show Gist options
  • Save bachhm-dev/6737f75554cba8bfb92306116da03151 to your computer and use it in GitHub Desktop.
Save bachhm-dev/6737f75554cba8bfb92306116da03151 to your computer and use it in GitHub Desktop.
import Axios from "axios";
export default function locale() {
async function getLocales() {
return await Axios.get(
"...url..."
).then((response) => {
return response.data;
});
}
return { getLocales };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment