cityofaustin / cityofaustin/techstack

Character limits for different languages

Open
#4,054 0 comments 0 reactions 0 assignees View on GitHub
Joplin Alpha Team: Dev
Dominant language
No language data
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### As a content author, I need page description character limits to be increased so that it accounts for translations.

Content translated into languages other than English needs more characters. We've also run into this again with the Community Police Review Commission.

See issue #2193 for more background. We ended up raising the character limits for EVERYTHING across all language because of this problem in the past. But what's happened is that now we're writing English descriptions that are too long—see for example the CPRC service page in which the English is 10 characters over:
![image](https://user-images.githubusercontent.com/5839508/75561543-cf2a8880-5a0c-11ea-947b-13f41cf31278.png)
(Let's fix it so that we actually enforce the English character limit)

**Acceptance criteria**
Let's start with service pages, unless it's easier just to do all description fields across the board.
- [ ] When user adds a description in `en`, the character limit is 254 characters. Users cannot publish a page if the description exceeds this limit.
- [ ] When a user adds a description in any other language (`es`, `ar`, `vn`), users cannot publish a page if the description exceeds the limit of **270** characters.
- [ ] For now, the display doesn't have to match this, but would be nice to size this out.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named in the issue. Start by locating service-page description validation and the publish path, then verify that English descriptions are capped at 254 characters while es, ar, and vn descriptions are capped at 270; done means over-limit pages cannot be published.

Written by the indexing model from the issue text.

Assessment

Domain
content
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.