-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Clear and concise description of the problem
thanks for this very useful package!
the new devtools + pseudo-localization switch are really cool, and would be even cooler ๐ when the length of the text could be adjusted, e.g. +30% or a configurable amount.
Suggested solution
a devtools switch or other control (slider, input, whatever) controlling a feature to artificially make text longer in pseudolocalization.
i'd suggest simply appending underscore (_
) characters at the end of each word, which count as โwordโ characters and will not be affected by css line-wrapping etc. the definition of โwordโ is vague and language-specific (and Intl.Segmenter
is overkill and not widely supported), but runs of โwordโ characters (\w
in RegExp
) would likely suffice for this use case.
example: this is a test message
would become something like this_ is_ a test_ message__
Alternative
No response
Additional context
- https://mozilla-l10n.github.io/documentation/localization/dev_best_practices.html#design-for-at-least-30
- https://www.w3.org/International/articles/article-text-size
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.