From bd908d3e67aff0da117aeaf1eb5c1dc60031efac Mon Sep 17 00:00:00 2001 From: Khaled Huthaily Date: Mon, 2 Jan 2023 20:32:30 -0700 Subject: [PATCH] translate app name allows app name and short name to be translated --- Services/ManifestService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/ManifestService.php b/Services/ManifestService.php index c7afd79..63487a8 100644 --- a/Services/ManifestService.php +++ b/Services/ManifestService.php @@ -14,8 +14,8 @@ class ManifestService public function generate() { $basicManifest = [ - 'name' => config('laravelpwa.manifest.name'), - 'short_name' => config('laravelpwa.manifest.short_name'), + 'name' => trans(config('laravelpwa.manifest.name')), + 'short_name' => trans(config('laravelpwa.manifest.short_name')), 'start_url' => asset(config('laravelpwa.manifest.start_url')), 'display' => config('laravelpwa.manifest.display'), 'theme_color' => config('laravelpwa.manifest.theme_color'),