This commit is contained in:
2024-04-30 23:24:35 +05:00
parent d53db60a20
commit 424c3f22d1
8 changed files with 7 additions and 25 deletions

View File

@@ -63,7 +63,7 @@ class LocaleManagerRepo
*/
public function localeAppTranslationsDirectory(): string
{
return $this->localeAppPath . DIRECTORY_SEPARATOR . 'lang';
return $this->localeAppPath.DIRECTORY_SEPARATOR.'lang';
}
/**
@@ -82,8 +82,8 @@ class LocaleManagerRepo
public function syncTranslationsWithLocaleApp(): self
{
$response = Http::acceptJson()->withHeaders([
'Api-Token' => $this->localeAppApiToken,
])
'Api-Token' => $this->localeAppApiToken,
])
->retry(
times: 3,
sleepMilliseconds: 50,
@@ -92,7 +92,7 @@ class LocaleManagerRepo
return true;
})
->post(
url: $this->localeAppUrl . '/api/import-translations',
url: $this->localeAppUrl.'/api/import-translations',
data: []
);