We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8790dc8 commit 7558a64Copy full SHA for 7558a64
src/Http/Controllers/TranslationController.php
@@ -32,6 +32,15 @@ public function getTranslations(): LengthAwarePaginator
32
});
33
34
})
35
+ // with get Translation Progress Percentage
36
+ ->withCount(['phrases as translated' => function ($query) {
37
+ $query->whereNotNull('value');
38
+ }])
39
+ ->withCount(['phrases as untranslated' => function ($query) {
40
+ $query->whereNull('value');
41
42
+ ->withCount('phrases')
43
+
44
->with('language')->paginate(12)->onEachSide(0);
45
}
46
public function getTranslationProgressPercentage(Translation $translation): JsonResponse
0 commit comments