mapbox / mapbox/mapbox-gl-js

Support titlecase in text-transform

Open
#6,498 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

It would be very useful in some cases to be able to transform label values from upper case to title case. It seems this was considered in the original proposal for `text-transform` (#149) but wasn't implemented for some reason.

Obviously titlecase/sentence case have some complexities to get right in different languages, but even a naive "uppercase the first letter of every word" would be pretty useful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing text-transform implementation and the original proposal in issue #149. Determine the intended titlecase behavior, including whether a naive per-word transformation is acceptable, then add coverage for the chosen behavior and verify that transformed label values render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.