public function fetchData()
    {
        $locales = json_decode(file_get_contents($this->locale_data_url));

        if (isset($locales->countries)) {
            //For some reason the countries are seperated by a tilde
            $countries = explode('~', $locales->countries);

            $data_dir = __DIR__ . '/i18n';

            //Loop countries and grab the corrosponding json data
            foreach ($countries as $country) {
                $file = $data_dir . '/' . $country . '.json';

                file_put_contents($file, file_get_contents($this->locale_data_url . '/' . $country));
            }
        }
    }