Skip to content

Add CapitalizeResourceName utility to styling package #227

@digitalghost-dev

Description

@digitalghost-dev

Centralizes the repeated title-casing pattern (cases.Title(language.English).String(strings.ReplaceAll(name, "-", " "))) into a single CapitalizeResourceName function in the styling package.

This function converts hyphenated API resource names to title case (e.g., "strong-jaw" → "Strong Jaw"), reduces code duplication, and improves maintainability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorRefactoring existing code.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions