private function modifySlugs(Request &$request): void
    {
        $translations = $request->input('translations', []);
        $existingSlugs = [];
        $i = 1;

        foreach ($translations as $iso => $translationData) {
            // Auto generated
            if (!$slug = array_get($translationData, 'slug')) {
                continue;
            }

            $slug = SlugService::createSlug(CategoryTranslation::class, 'slug', $slug, ['unique' => false]);

            // Prevent equal slug's on create.
            if (in_array($slug, $existingSlugs)) {
                $slug .= '-' . $i;
                $i++;
            }

            $translations[$iso]['slug'] = $slug;
            $existingSlugs[] = $slug;
        }

        $request->merge(compact('translations'));
    }