From 0c17e6014f65a6b17a32c4fdd24a5d520ab865e9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 5 Dec 2022 21:26:51 +1100 Subject: [PATCH] Refactor language translations --- app/Console/Commands/TranslationsExport.php | 6 +++--- composer.lock | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Console/Commands/TranslationsExport.php b/app/Console/Commands/TranslationsExport.php index 5fcf588b0ff5..5021a65ae117 100644 --- a/app/Console/Commands/TranslationsExport.php +++ b/app/Console/Commands/TranslationsExport.php @@ -89,14 +89,14 @@ class TranslationsExport extends Command */ public function handle() { - Storage::makeDirectory(storage_path('lang')); + Storage::disk('local')->makeDirectory('lang'); foreach ($this->langs as $lang) { - Storage::makeDirectory(storage_path("lang/{$lang}")); + Storage::disk('local')->makeDirectory("lang/{$lang}"); $translations = Lang::getLoader()->load($lang, 'texts'); - Storage::put(storage_path("lang/{$lang}/{$lang}.json"), json_encode(Arr::dot($translations), JSON_UNESCAPED_UNICODE)); + Storage::disk('local')->put("lang/{$lang}/{$lang}.json", json_encode(Arr::dot($translations), JSON_UNESCAPED_UNICODE)); } } } diff --git a/composer.lock b/composer.lock index 145ccaef8c24..f6f61dc1fef5 100644 --- a/composer.lock +++ b/composer.lock @@ -2164,16 +2164,16 @@ }, { "name": "google/apiclient-services", - "version": "v0.276.0", + "version": "v0.277.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client-services.git", - "reference": "9a0bab5e4472d46bf979e06208da4bd03a5e6103" + "reference": "72e0eacbd51131c954da05edf110d9774f0f5af0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/9a0bab5e4472d46bf979e06208da4bd03a5e6103", - "reference": "9a0bab5e4472d46bf979e06208da4bd03a5e6103", + "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/72e0eacbd51131c954da05edf110d9774f0f5af0", + "reference": "72e0eacbd51131c954da05edf110d9774f0f5af0", "shasum": "" }, "require": { @@ -2202,9 +2202,9 @@ ], "support": { "issues": "https://github.com/googleapis/google-api-php-client-services/issues", - "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.276.0" + "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.277.0" }, - "time": "2022-11-25T01:16:27+00:00" + "time": "2022-12-05T01:04:16+00:00" }, { "name": "google/auth",